From 177fab23222475c957708a7751086b5fff17c67c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 26 Sep 2018 17:36:53 +0200 Subject: net.connect: Fix passing request table to new listener This could be a return value from ondetach --- net/server_epoll.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/server_epoll.lua') diff --git a/net/server_epoll.lua b/net/server_epoll.lua index 23b3f376..9516ab4d 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -136,10 +136,10 @@ function interface_mt:__tostring() 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 -- cgit v1.2.3