Software /
code /
prosody
Changeset
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 |
parents | 1802:07c4f6fdd27c |
children | 1805:7e41ad68fe3c |
files | net/server.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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 )