aboutsummaryrefslogtreecommitdiffstats
path: root/net/server.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-09-21 13:53:59 +0100
committerMatthew Wild <mwild1@gmail.com>2009-09-21 13:53:59 +0100
commitdf867fb148541c8b10e1b1decc0387eb63d35464 (patch)
treed44786229159c530444ae937ad6a08057c163df5 /net/server.lua
parent475e12eb1b56e2033257cb50a02a28ee0e119b58 (diff)
downloadprosody-df867fb148541c8b10e1b1decc0387eb63d35464.tar.gz
prosody-df867fb148541c8b10e1b1decc0387eb63d35464.zip
net.server: Fix traceback when closing connections with buffered data get closed during send
Diffstat (limited to 'net/server.lua')
-rw-r--r--net/server.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server.lua b/net/server.lua
index 12b0aa90..971ea553 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -363,6 +363,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
send( socket, table_concat( bufferqueue, "", 1, bufferqueuelen ), 1, bufferlen ) -- forced send
end
end
+ if not handler then return true; end
_ = shutdown and shutdown( socket )
socket:close( )
_sendlistlen = removesocket( _sendlist, socket, _sendlistlen )