mirror of
https://erdgeist.org/gitweb/opentracker
synced 2024-05-10 07:54:50 +00:00
Make clean_single_torrent return much faster, if nothing is to do
This commit is contained in:
@ -25,6 +25,9 @@ int clean_single_torrent( ot_torrent *torrent ) {
|
||||
char *new_peers;
|
||||
#endif
|
||||
|
||||
if( !timedout )
|
||||
return 0;
|
||||
|
||||
/* Torrent has idled out */
|
||||
if( timedout > OT_TORRENT_TIMEOUT )
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user