|
|
@ -71,10 +71,11 @@ ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer WANT_SYNC_PARAM( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
byte_zero( torrent->peer_list, sizeof( ot_peerlist ) ); |
|
|
|
byte_zero( torrent->peer_list, sizeof( ot_peerlist ) ); |
|
|
|
torrent->peer_list->base = g_now_minutes; |
|
|
|
|
|
|
|
} else |
|
|
|
} else |
|
|
|
clean_single_torrent( torrent ); |
|
|
|
clean_single_torrent( torrent ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
torrent->peer_list->base = g_now_minutes; |
|
|
|
|
|
|
|
|
|
|
|
/* Check for peer in torrent */ |
|
|
|
/* Check for peer in torrent */ |
|
|
|
peer_dest = vector_find_or_insert_peer( &(torrent->peer_list->peers), peer, &exactmatch ); |
|
|
|
peer_dest = vector_find_or_insert_peer( &(torrent->peer_list->peers), peer, &exactmatch ); |
|
|
|
if( !peer_dest ) { |
|
|
|
if( !peer_dest ) { |
|
|
|