aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-26 17:36:53 +0200
committerKim Alvefur <zash@zash.se>2018-09-26 17:36:53 +0200
commit177fab23222475c957708a7751086b5fff17c67c (patch)
tree81c62534a9d870f4462bbb306f51dea28c0509a3 /net/server_epoll.lua
parent6f80e5bfa629d1fe99e0f62ca12f4c6b789f7845 (diff)
downloadprosody-177fab23222475c957708a7751086b5fff17c67c.tar.gz
prosody-177fab23222475c957708a7751086b5fff17c67c.zip
net.connect: Fix passing request table to new listener
This could be a return value from ondetach
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua4
1 files changed, 2 insertions, 2 deletions
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