]> granicus.if.org Git - transmission/commitdiff
#671 "torrent queuing" -- fix r12611 oops
authorJordan Lee <jordan@transmissionbt.com>
Tue, 2 Aug 2011 14:03:43 +0000 (14:03 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Tue, 2 Aug 2011 14:03:43 +0000 (14:03 +0000)
libtransmission/torrent.c

index 321f885b34e782c15c867143191e2964d87453ff..db5566ff7be4fdc0af7db9cf84ec60c5899777f9 100644 (file)
@@ -1534,7 +1534,7 @@ freeTorrent( tr_torrent * tor )
 
     /* resequence the queue positions */
     t = NULL;
-    while(( t = tr_torrentNext( session, tor ))) {
+    while(( t = tr_torrentNext( session, t ))) {
         if( t->queuePosition > tor->queuePosition ) {
             t->queuePosition--;
             t->anyDate = now;