aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua1
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