Diff

net/server.lua @ 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
parent 1574:3692706f78e3
child 1581:4cdf9cefa0bc
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