mirror of
git://erdgeist.org/opentracker
synced 2025-02-05 11:36:24 +00:00
There is a pool leak somewhere... try to find it
This commit is contained in:
parent
0d36a8754e
commit
dd82db18ad
@ -550,8 +550,17 @@ void clean_all_torrents( void ) {
|
||||
}
|
||||
|
||||
/* If nothing to be cleaned here, handle next torrent */
|
||||
if( timedout > OT_POOLS_COUNT )
|
||||
continue;
|
||||
if( timedout > OT_POOLS_COUNT ) {
|
||||
|
||||
peers_count = 0;
|
||||
for( k = 0; k < OT_POOLS_COUNT; ++k )
|
||||
peers_count += peer_list->peers[k].size;
|
||||
|
||||
if( !peers_count )
|
||||
continue;
|
||||
|
||||
timedout = OT_POOLS_COUNT;
|
||||
}
|
||||
|
||||
/* Release vectors that have timed out */
|
||||
for( k = OT_POOLS_COUNT - timedout; k < OT_POOLS_COUNT; ++k )
|
||||
|
Loading…
x
Reference in New Issue
Block a user