Merge 0.9->0.10
authorKim Alvefur <zash@zash.se>
Thu, 24 Nov 2016 14:18:25 +0100
changeset 7741 0647b821e00a
parent 7737 6a52415ed68a (current diff)
parent 7739 5a07fe977002 (diff)
child 7742 0356216c474c
Merge 0.9->0.10
net/server_select.lua
--- a/net/server_select.lua	Sun Nov 20 12:06:36 2016 +0100
+++ b/net/server_select.lua	Thu Nov 24 14:18:25 2016 +0100
@@ -421,6 +421,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