aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-18 17:23:06 +0200
committerKim Alvefur <zash@zash.se>2016-08-18 17:23:06 +0200
commit5e5b45be6ea322d815872a499ba85d4584cd28fd (patch)
tree13467883fcb9a008fd7f1d9414e15c16d6178892
parent81dcc80c9be0cb6d9535e05725473992679b28a3 (diff)
downloadprosody-5e5b45be6ea322d815872a499ba85d4584cd28fd.tar.gz
prosody-5e5b45be6ea322d815872a499ba85d4584cd28fd.zip
net.server_epoll: Call ondetach when listeners are replaced
-rw-r--r--net/server_epoll.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index e485802f..20c49daf 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -127,6 +127,7 @@ function interface_mt:__tostring()
end
function interface:setlistener(listeners)
+ self:on("detach");
self.listeners = listeners;
end