Comparison

net/server_select.lua @ 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
parent 9576:913a17d6c449
child 9578:1ef33635f3f0
comparison
equal deleted inserted replaced
9576:913a17d6c449 9577:388b93b3eecf
481 _readtimes[ handler ] = _currenttime 481 _readtimes[ handler ] = _currenttime
482 end 482 end
483 return noread; 483 return noread;
484 end 484 end
485 handler.lock = function( self, switch ) 485 handler.lock = function( self, switch )
486 handler.lock_read (switch) 486 handler.lock_read (self, switch)
487 if switch == true then 487 if switch == true then
488 handler.write = idfalse 488 handler.write = idfalse
489 local tmp = _sendlistlen 489 local tmp = _sendlistlen
490 _sendlistlen = removesocket( _sendlist, socket, _sendlistlen ) 490 _sendlistlen = removesocket( _sendlist, socket, _sendlistlen )
491 _writetimes[ handler ] = nil 491 _writetimes[ handler ] = nil