diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-26 17:36:53 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-26 17:36:53 +0200 |
commit | 177fab23222475c957708a7751086b5fff17c67c (patch) | |
tree | 81c62534a9d870f4462bbb306f51dea28c0509a3 /net/server_select.lua | |
parent | 6f80e5bfa629d1fe99e0f62ca12f4c6b789f7845 (diff) | |
download | prosody-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_select.lua')
-rw-r--r-- | net/server_select.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server_select.lua b/net/server_select.lua index 1b535bb7..cd97f0a6 100644 --- a/net/server_select.lua +++ b/net/server_select.lua @@ -321,7 +321,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport end handler.onreadtimeout = onreadtimeout; - handler.setlistener = function( self, listeners ) + handler.setlistener = function( self, listeners, data ) if detach then detach(self) -- Notify listener that it is no longer responsible for this connection end @@ -332,7 +332,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport handler.onreadtimeout = listeners.onreadtimeout detach = listeners.ondetach if listeners.onattach then - listeners.onattach(self) + listeners.onattach(self, data) end end handler.getstats = function( ) |