From 5e5b45be6ea322d815872a499ba85d4584cd28fd Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 18 Aug 2016 17:23:06 +0200 Subject: net.server_epoll: Call ondetach when listeners are replaced --- net/server_epoll.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3