Changeset

7738:0647b821e00a

Merge 0.9->0.10
author Kim Alvefur <zash@zash.se>
date Thu, 24 Nov 2016 14:18:25 +0100
parents 7734:6a52415ed68a (current diff) 7736:5a07fe977002 (diff)
children 7739:0356216c474c
files net/server_select.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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