completed fast reconnect fix

This commit is contained in:
Arvid Norberg
2007-10-04 21:26:50 +00:00
parent 82369a552b
commit 2940d253c3
5 changed files with 21 additions and 4 deletions

View File

@@ -1340,7 +1340,11 @@ namespace libtorrent
p->connection = 0;
p->optimistically_unchoked = false;
p->connected = time_now();
// if fast reconnect is true, we won't
// update the timestamp, and it will remain
// the time when we initiated the connection.
if (!c.fast_reconnect())
p->connected = time_now();
if (c.failed())
{