Diff

net/server_epoll.lua @ 9385:58fe099043ed

net.server: Call a 'onattach' callback when replacing listeners
author Kim Alvefur <zash@zash.se>
date Wed, 26 Sep 2018 14:25:59 +0200
parent 9384:5c8006ce8cb8
child 9387:33e52f727f0f
line wrap: on
line diff
--- a/net/server_epoll.lua	Wed Sep 26 14:57:09 2018 +0200
+++ b/net/server_epoll.lua	Wed Sep 26 14:25:59 2018 +0200
@@ -139,6 +139,7 @@
 function interface:setlistener(listeners)
 	self:on("detach");
 	self.listeners = listeners;
+	self:on("attach");
 end
 
 -- Call a listener callback