]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Make clean_single_torrent return much faster, if nothing is to do
authorerdgeist <>
Tue, 20 Nov 2007 02:22:21 +0000 (02:22 +0000)
committererdgeist <>
Tue, 20 Nov 2007 02:22:21 +0000 (02:22 +0000)
ot_clean.c

index 625e94a35b8aae95c87f17f66b5ec871bbb2ca04..e8d2841c903265761bf1c4e3acf7efe76b7fce23 100644 (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;