]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Fixed a bug where we forgot to stamp torrents that are not new.
authorerdgeist <>
Wed, 28 Nov 2007 22:52:35 +0000 (22:52 +0000)
committererdgeist <>
Wed, 28 Nov 2007 22:52:35 +0000 (22:52 +0000)
trackerlogic.c

index 2b4e91dc1966349b9022828561798a44b4899d8e..756ed0f5da79c7fa76f5bfefd36770c9414c3c62 100644 (file)
@@ -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;