diff options
author | erdgeist <> | 2008-12-11 11:48:34 +0000 |
---|---|---|
committer | erdgeist <> | 2008-12-11 11:48:34 +0000 |
commit | 3df5e476d086e7a5e1e6cd66ffc0c98e72c2f0bf (patch) | |
tree | 7500c7c1d7beeb9581e4fc2af057f69a4d327181 /trackerlogic.c | |
parent | 6d4845149c9c2f96d038ba41fcad6fedd378ae4c (diff) |
Fix: Did not time stamp a torrent correctly, that once timed out and came back to life
Diffstat (limited to 'trackerlogic.c')
-rw-r--r-- | trackerlogic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 7d6294d..c1106e1 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -71,10 +71,11 @@ ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer WANT_SYNC_PARAM( | |||
71 | } | 71 | } |
72 | 72 | ||
73 | byte_zero( torrent->peer_list, sizeof( ot_peerlist ) ); | 73 | byte_zero( torrent->peer_list, sizeof( ot_peerlist ) ); |
74 | torrent->peer_list->base = g_now_minutes; | ||
75 | } else | 74 | } else |
76 | clean_single_torrent( torrent ); | 75 | clean_single_torrent( torrent ); |
77 | 76 | ||
77 | torrent->peer_list->base = g_now_minutes; | ||
78 | |||
78 | /* Check for peer in torrent */ | 79 | /* Check for peer in torrent */ |
79 | peer_dest = vector_find_or_insert_peer( &(torrent->peer_list->peers), peer, &exactmatch ); | 80 | peer_dest = vector_find_or_insert_peer( &(torrent->peer_list->peers), peer, &exactmatch ); |
80 | if( !peer_dest ) { | 81 | if( !peer_dest ) { |