# HG changeset patch # User Kim Alvefur <zash@zash.se> # Date 1471533786 -7200 # Node ID 36408ef6c8c9376548672254d9fb7b8fa2789151 # Parent 4e2b019ff17669ec4a852970e2abfb46034080d9 net.server_epoll: Call ondetach when listeners are replaced diff -r 4e2b019ff176 -r 36408ef6c8c9 net/server_epoll.lua --- a/net/server_epoll.lua Thu Aug 18 17:17:16 2016 +0200 +++ b/net/server_epoll.lua Thu Aug 18 17:23:06 2016 +0200 @@ -127,6 +127,7 @@ end function interface:setlistener(listeners) + self:on("detach"); self.listeners = listeners; end