summaryrefslogtreecommitdiff
path: root/ot_clean.c
diff options
context:
space:
mode:
authorerdgeist <>2007-11-20 02:22:21 +0000
committererdgeist <>2007-11-20 02:22:21 +0000
commit74a5afbe8241edef40bef1f684ea02df7fda3b10 (patch)
tree13f3aa0f69ce95926835c8ed8bca9e2adebc25e1 /ot_clean.c
parentcf8d4fae1d7c03b6836e83f16dd877af41bd7303 (diff)
Make clean_single_torrent return much faster, if nothing is to do
Diffstat (limited to 'ot_clean.c')
-rw-r--r--ot_clean.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ot_clean.c b/ot_clean.c
index 625e94a..e8d2841 100644
--- a/ot_clean.c
+++ b/ot_clean.c
@@ -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;