aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
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
commitd67b08d9c48ac3bef4a495b7cd700b956c7e7c61 (patch)
treee8abc8231b5ead7614fb4774d69c2be3c05c4390 /net/server_select.lua
parentb593a8c54f2c37aefae0503b130242589e42dc79 (diff)
downloadprosody-d67b08d9c48ac3bef4a495b7cd700b956c7e7c61.tar.gz
prosody-d67b08d9c48ac3bef4a495b7cd700b956c7e7c61.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/server_select.lua')
-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