net/connect.lua
changeset 12472 353836684009
parent 12430 7a3da1acace1
child 12643 6d9ee0a3eb4b
equal deleted inserted replaced
12471:ccbdebb43e23 12472:353836684009
    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