From 74a5afbe8241edef40bef1f684ea02df7fda3b10 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 20 Nov 2007 02:22:21 +0000 Subject: Make clean_single_torrent return much faster, if nothing is to do --- ot_clean.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ot_clean.c') 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 ) { char *new_peers; #endif + if( !timedout ) + return 0; + /* Torrent has idled out */ if( timedout > OT_TORRENT_TIMEOUT ) return 1; -- cgit v1.2.3