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
commit2d2c10e83b62fbe72ac90043eca1c90d60a8cee5 (patch)
tree13467883fcb9a008fd7f1d9414e15c16d6178892
parentcd87e3b71948c1d44720c597d2ff652bc5c6c724 (diff)
downloadprosody-2d2c10e83b62fbe72ac90043eca1c90d60a8cee5.tar.gz
prosody-2d2c10e83b62fbe72ac90043eca1c90d60a8cee5.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