Changeset

7604:36408ef6c8c9

net.server_epoll: Call ondetach when listeners are replaced
author Kim Alvefur <zash@zash.se>
date Thu, 18 Aug 2016 17:23:06 +0200
parents 7603:4e2b019ff176
children 7605:2481ebc7f715
files net/server_epoll.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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