Software /
code /
prosody
Comparison
net/connect.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 | 9386:0f395d82b4ea |
child | 10112:b327f2870382 |
comparison
equal
deleted
inserted
replaced
9386:0f395d82b4ea | 9387:33e52f727f0f |
---|---|
54 conn:close(); | 54 conn:close(); |
55 return; | 55 return; |
56 end | 56 end |
57 pending_connections_map[conn] = nil; | 57 pending_connections_map[conn] = nil; |
58 p:log("debug", "Successfully connected"); | 58 p:log("debug", "Successfully connected"); |
59 conn:setlistener(p.listeners); | 59 conn:setlistener(p.listeners, p.data); |
60 return p.listeners.onconnect(conn); | 60 return p.listeners.onconnect(conn); |
61 end | 61 end |
62 | 62 |
63 function pending_connection_listeners.ondisconnect(conn, reason) | 63 function pending_connection_listeners.ondisconnect(conn, reason) |
64 local p = pending_connections_map[conn]; | 64 local p = pending_connections_map[conn]; |