Mercurial > prosody-hg
comparison net/connect.lua @ 8550:f841d359da65
net.connect: Fix to store correct parameter
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 26 Feb 2018 15:26:08 +0000 |
| parents | 69e942c2990f |
| children | 0f395d82b4ea |
comparison
equal
deleted
inserted
replaced
| 8549:69e942c2990f | 8550:f841d359da65 |
|---|---|
| 78 local p = setmetatable({ | 78 local p = setmetatable({ |
| 79 id = new_id(); | 79 id = new_id(); |
| 80 target_resolver = target_resolver; | 80 target_resolver = target_resolver; |
| 81 listeners = assert(listeners); | 81 listeners = assert(listeners); |
| 82 options = options or {}; | 82 options = options or {}; |
| 83 cb = cb; | 83 data = data; |
| 84 }, pending_connection_mt); | 84 }, pending_connection_mt); |
| 85 | 85 |
| 86 p:log("debug", "Starting connection process"); | 86 p:log("debug", "Starting connection process"); |
| 87 attempt_connection(p); | 87 attempt_connection(p); |
| 88 end | 88 end |
