summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trackerlogic.c3
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 ) {