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 | 5e5b45be6ea322d815872a499ba85d4584cd28fd (patch) | |
tree | 13467883fcb9a008fd7f1d9414e15c16d6178892 | |
parent | 81dcc80c9be0cb6d9535e05725473992679b28a3 (diff) | |
download | prosody-5e5b45be6ea322d815872a499ba85d4584cd28fd.tar.gz prosody-5e5b45be6ea322d815872a499ba85d4584cd28fd.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 |