# HG changeset patch # User Matthew Wild # Date 1253537639 -3600 # Node ID f0f5ff6f82d6ceef032f42faf809ae65d0e3865e # Parent 07c4f6fdd27c58e3564fa89b1602187a8b45d948 net.server: Fix traceback when closing connections with buffered data get closed during send diff -r 07c4f6fdd27c -r f0f5ff6f82d6 net/server.lua --- 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 )