diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 321f885b3..db5566ff7 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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;