aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index f5c9e86b..b5d99539 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -350,7 +350,11 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
if handler then
_writetimes[ handler ] = nil
_closelist[ handler ] = nil
+ local _handler = handler;
handler = nil
+ if disconnect then
+ disconnect(_handler, "closed");
+ end
end
if server then
server.remove( )