aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-28 16:54:08 +0100
committerKim Alvefur <zash@zash.se>2018-10-28 16:54:08 +0100
commit38ea739022f4adeca620b4c8bb736bacb60e1d06 (patch)
treee8abc8231b5ead7614fb4774d69c2be3c05c4390 /net
parent9fe357101e6a870bc94ec27577abc022c62bc6da (diff)
downloadprosody-38ea739022f4adeca620b4c8bb736bacb60e1d06.tar.gz
prosody-38ea739022f4adeca620b4c8bb736bacb60e1d06.zip
server_select: Fix :lock method
This always unlocks reading. I don't believe this is used anywhere. server_event does not implement this.
Diffstat (limited to 'net')
-rw-r--r--net/server_select.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 51a74c94..d74da130 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -483,7 +483,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
return noread;
end
handler.lock = function( self, switch )
- handler.lock_read (switch)
+ handler.lock_read (self, switch)
if switch == true then
handler.write = idfalse
local tmp = _sendlistlen