Diff

net/server_select.lua @ 7745:6d6a04628954

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 26 Nov 2016 20:11:03 +0100
parent 7530:f14094d10925
parent 7738:0647b821e00a
child 8528:67311cda0625
line wrap: on
line diff
--- a/net/server_select.lua	Wed Nov 23 17:27:44 2016 +0100
+++ b/net/server_select.lua	Sat Nov 26 20:11:03 2016 +0100
@@ -416,6 +416,7 @@
 	end
 	handler.port = handler.clientport -- COMPAT server_event
 	local write = function( self, data )
+		if not handler then return false end
 		bufferlen = bufferlen + #data
 		if bufferlen > maxsendlen then
 			_closelist[ handler ] = "send buffer exceeded"	 -- cannot close the client at the moment, have to wait to the end of the cycle