diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-26 14:25:59 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-26 14:25:59 +0200 |
commit | 437fd63c6ff097d6a09d162ef9b6a104d73fa723 (patch) | |
tree | aaf5dc7cdf93938b5caf6c2ef7451caf7cf0ae13 /net/server_epoll.lua | |
parent | 341cb9cc54b2555e9313f7613e7f389c1352bc51 (diff) | |
download | prosody-437fd63c6ff097d6a09d162ef9b6a104d73fa723.tar.gz prosody-437fd63c6ff097d6a09d162ef9b6a104d73fa723.zip |
net.server: Call a 'onattach' callback when replacing listeners
Diffstat (limited to 'net/server_epoll.lua')
-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 04922f6e..23b3f376 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -139,6 +139,7 @@ end function interface:setlistener(listeners) self:on("detach"); self.listeners = listeners; + self:on("attach"); end -- Call a listener callback |