diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-28 16:54:08 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-28 16:54:08 +0100 |
commit | d67b08d9c48ac3bef4a495b7cd700b956c7e7c61 (patch) | |
tree | e8abc8231b5ead7614fb4774d69c2be3c05c4390 /net/server_select.lua | |
parent | b593a8c54f2c37aefae0503b130242589e42dc79 (diff) | |
download | prosody-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.lua | 2 |
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 |