diff options
author | erdgeist <> | 2007-11-20 02:22:21 +0000 |
---|---|---|
committer | erdgeist <> | 2007-11-20 02:22:21 +0000 |
commit | 74a5afbe8241edef40bef1f684ea02df7fda3b10 (patch) | |
tree | 13f3aa0f69ce95926835c8ed8bca9e2adebc25e1 | |
parent | cf8d4fae1d7c03b6836e83f16dd877af41bd7303 (diff) |
Make clean_single_torrent return much faster, if nothing is to do
-rw-r--r-- | ot_clean.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -25,6 +25,9 @@ int clean_single_torrent( ot_torrent *torrent ) { | |||
25 | char *new_peers; | 25 | char *new_peers; |
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | if( !timedout ) | ||
29 | return 0; | ||
30 | |||
28 | /* Torrent has idled out */ | 31 | /* Torrent has idled out */ |
29 | if( timedout > OT_TORRENT_TIMEOUT ) | 32 | if( timedout > OT_TORRENT_TIMEOUT ) |
30 | return 1; | 33 | return 1; |