aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-26 20:11:03 +0100
committerKim Alvefur <zash@zash.se>2016-11-26 20:11:03 +0100
commit562a902d415f3a0962354c0f12776ec3e1db594f (patch)
tree5fafe37e76936f880749432bffa3174a7ca120cd /net/server_select.lua
parentb17b81319300e94b7870e6e9c658f9528bd4c9b9 (diff)
parent234d7178f15e860dc6c624f1e16dd245372ec34d (diff)
downloadprosody-562a902d415f3a0962354c0f12776ec3e1db594f.tar.gz
prosody-562a902d415f3a0962354c0f12776ec3e1db594f.zip
Merge 0.10->trunk
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index 0776b02e..f051da24 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -416,6 +416,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
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