Changeset

1577:c0e6d11e35ce

net.server: Remove listener from listeners table when calling removeserver
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Jul 2009 03:06:49 +0100
parents 1576:0cfc7eb6957b
children 1578:5bd8b3bdbfbc
files net/server.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server.lua	Thu Jul 23 02:33:10 2009 +0100
+++ b/net/server.lua	Thu Jul 23 03:06:49 2009 +0100
@@ -690,6 +690,7 @@
         return nil, "no server found on port '" .. tostring( port ) "'"
     end
     handler.close( )
+    _server[ port ] = nil
     return true
 end