]> granicus.if.org Git - transmission/commitdiff
#5298 'Transmission not holding queue order' -- fixed with patch by gabrielrcp
authorJordan Lee <jordan@transmissionbt.com>
Sat, 17 Aug 2013 16:20:32 +0000 (16:20 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 17 Aug 2013 16:20:32 +0000 (16:20 +0000)
libtransmission/session.c

index c63a43765618fd3e8966e0f666292ba31e8ca3ba..6d4984e7d08a286bd562283025a341d473ca522e 100644 (file)
@@ -2796,7 +2796,6 @@ struct TorrentAndPosition
   int position;
 };
 
-/* higher positions come first */
 static int
 compareTorrentAndPositions (const void * va, const void * vb)
 {
@@ -2805,9 +2804,9 @@ compareTorrentAndPositions (const void * va, const void * vb)
   const struct TorrentAndPosition * b = vb;
 
   if (a->position > b->position)
-    ret = -1;
-  else if (a->position < b->position)
     ret = 1;
+  else if (a->position < b->position)
+    ret = -1;
   else
     ret = 0;