Diff

net/server_epoll.lua @ 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
parent 7603:4e2b019ff176
child 7606:f40f1d9b7872
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