equal
deleted
inserted
replaced
89 if not p then |
89 if not p then |
90 log("warn", "Failed connection, but unexpected!"); |
90 log("warn", "Failed connection, but unexpected!"); |
91 return; |
91 return; |
92 end |
92 end |
93 p.conns[conn] = nil; |
93 p.conns[conn] = nil; |
|
94 pending_connections_map[conn] = nil; |
94 p.last_error = reason or "unknown reason"; |
95 p.last_error = reason or "unknown reason"; |
95 p:log("debug", "Connection attempt failed: %s", p.last_error); |
96 p:log("debug", "Connection attempt failed: %s", p.last_error); |
96 if p.connected then |
97 if p.connected then |
97 p:log("debug", "Connection already established, ignoring failure"); |
98 p:log("debug", "Connection already established, ignoring failure"); |
98 elseif next(p.conns) == nil then |
99 elseif next(p.conns) == nil then |