# HG changeset patch # User Kim Alvefur # Date 1479993505 -3600 # Node ID 0647b821e00a834df82a847a53caaa83b17745e0 # Parent 6a52415ed68a7fa927b5a643eaa0d98c11cabe4a# Parent 5a07fe977002e398f90539b626e72fcefe02b92b Merge 0.9->0.10 diff -r 6a52415ed68a -r 0647b821e00a 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