]> granicus.if.org Git - transmission/commitdiff
(trunk, libT) #5429 'nightly build crashes on webseed torrents' -- fixed.
authorJordan Lee <jordan@transmissionbt.com>
Sat, 20 Jul 2013 16:45:02 +0000 (16:45 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 20 Jul 2013 16:45:02 +0000 (16:45 +0000)
libtransmission/webseed.c

index 0c904a86ef849f67ed3f0f631a94edca1db35177..dd17cd66e2d422847a5b281834b799ad1121aa2a 100644 (file)
@@ -324,7 +324,7 @@ on_idle (tr_webseed * w)
       w->retry_challenge = running_tasks + w->idle_connections + 1;
     }
 
-  if (tor && tor->isRunning && !tr_torrentIsSeed (tor) && want)
+  if (tor && tor->isRunning && !tr_torrentIsSeed (tor) && (want > 0))
     {
       int i;
       int got = 0;