diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-07-23 03:06:49 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-07-23 03:06:49 +0100 |
commit | 70f4cd7cb7da874196044c896d338b9dcda60e7b (patch) | |
tree | e095adfac477d1aaeceae6dd457e63b13b623a60 | |
parent | 43d40acd96caab4feff63dbb1797efa1158285ac (diff) | |
download | prosody-70f4cd7cb7da874196044c896d338b9dcda60e7b.tar.gz prosody-70f4cd7cb7da874196044c896d338b9dcda60e7b.zip |
net.server: Remove listener from listeners table when calling removeserver
-rw-r--r-- | net/server.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server.lua b/net/server.lua index b0e0eb78..6ff39926 100644 --- a/net/server.lua +++ b/net/server.lua @@ -690,6 +690,7 @@ removeserver = function( port ) return nil, "no server found on port '" .. tostring( port ) "'"
end
handler.close( )
+ _server[ port ] = nil
return true
end
|