From f697fa3dda6b2f308a8ab553b511a553d7b800a5 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 28 Nov 2007 22:52:35 +0000 Subject: Fixed a bug where we forgot to stamp torrents that are not new. --- trackerlogic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'trackerlogic.c') diff --git a/trackerlogic.c b/trackerlogic.c index 2b4e91d..756ed0f 100644 --- a/trackerlogic.c +++ b/trackerlogic.c @@ -65,10 +65,12 @@ ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer WANT_TRACKER_SYNC } byte_zero( torrent->peer_list, sizeof( ot_peerlist ) ); - torrent->peer_list->base = NOW; } else clean_single_torrent( torrent ); + /* Timestamp our first pool */ + torrent->peer_list->base = NOW; + /* Sanitize flags: Whoever claims to have completed download, must be a seeder */ if( ( OT_FLAG( peer ) & ( PEER_FLAG_COMPLETED | PEER_FLAG_SEEDING ) ) == PEER_FLAG_COMPLETED ) OT_FLAG( peer ) ^= PEER_FLAG_COMPLETED; -- cgit v1.2.3