Make clean_single_torrent return much faster, if nothing is to do

master
Dirk Engling 2007-11-20 02:22:21 +00:00
parent 819f9cc1dd
commit 191c88394b
1 changed files with 3 additions and 0 deletions

View File

@ -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;