Diff

net/server_epoll.lua @ 9387:33e52f727f0f

net.connect: Fix passing request table to new listener This could be a return value from ondetach
author Kim Alvefur <zash@zash.se>
date Wed, 26 Sep 2018 17:36:53 +0200
parent 9385:58fe099043ed
child 9430:412ff404bf58
line wrap: on
line diff
--- a/net/server_epoll.lua	Wed Sep 26 15:07:25 2018 +0200
+++ b/net/server_epoll.lua	Wed Sep 26 17:36:53 2018 +0200
@@ -136,10 +136,10 @@
 end
 
 -- Replace the listener and tell the old one
-function interface:setlistener(listeners)
+function interface:setlistener(listeners, data)
 	self:on("detach");
 	self.listeners = listeners;
-	self:on("attach");
+	self:on("attach", data);
 end
 
 -- Call a listener callback