Software /
code /
prosody
Diff
net/server.lua @ 1804:f0f5ff6f82d6
net.server: Fix traceback when closing connections with buffered data get closed during send
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 21 Sep 2009 13:53:59 +0100 |
parent | 1785:17c0fb598c97 |
child | 1806:c55e06eb53b2 |
child | 1863:51b1612325e6 |
line wrap: on
line diff
--- a/net/server.lua Sun Sep 20 21:29:43 2009 +0100 +++ b/net/server.lua Mon Sep 21 13:53:59 2009 +0100 @@ -363,6 +363,7 @@ 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 )