Changeset

9577:388b93b3eecf

server_select: Fix :lock method This always unlocks reading. I don't believe this is used anywhere. server_event does not implement this.
author Kim Alvefur <zash@zash.se>
date Sun, 28 Oct 2018 16:54:08 +0100
parents 9576:913a17d6c449
children 9578:1ef33635f3f0
files net/server_select.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_select.lua	Sun Oct 28 16:53:10 2018 +0100
+++ b/net/server_select.lua	Sun Oct 28 16:54:08 2018 +0100
@@ -483,7 +483,7 @@
 		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