diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-18 17:23:06 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-18 17:23:06 +0200 |
commit | 2d2c10e83b62fbe72ac90043eca1c90d60a8cee5 (patch) | |
tree | 13467883fcb9a008fd7f1d9414e15c16d6178892 | |
parent | cd87e3b71948c1d44720c597d2ff652bc5c6c724 (diff) | |
download | prosody-2d2c10e83b62fbe72ac90043eca1c90d60a8cee5.tar.gz prosody-2d2c10e83b62fbe72ac90043eca1c90d60a8cee5.zip |
net.server_epoll: Call ondetach when listeners are replaced
-rw-r--r-- | net/server_epoll.lua | 1 |
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 |