mirror of
git://erdgeist.org/opentracker
synced 2025-02-05 11:36:24 +00:00
really copy in new peer, even if it already existed, to remember its state
This commit is contained in:
parent
dc1099dd66
commit
a244da8d5e
@ -224,6 +224,7 @@ ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ) {
|
||||
torrent->peer_list->seed_count[0]--;
|
||||
if( !(OT_FLAG(peer_dest) & PEER_FLAG_SEEDING ) && (OT_FLAG(peer) & PEER_FLAG_SEEDING ) )
|
||||
torrent->peer_list->seed_count[0]++;
|
||||
memmove( peer_dest, peer, sizeof( ot_peer ) );
|
||||
|
||||
assert( torrent->peer_list->seed_count[0] >= 0 );
|
||||
assert( torrent->peer_list->seed_count[0] <= torrent->peer_list->peers[0].size );
|
||||
|
Loading…
x
Reference in New Issue
Block a user