From: Jordan Lee Date: Sat, 17 Aug 2013 16:20:32 +0000 (+0000) Subject: #5298 'Transmission not holding queue order' -- fixed with patch by gabrielrcp X-Git-Tag: 2.83~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9182c347115b8282919681aadb167ae128ea2d4c;p=transmission #5298 'Transmission not holding queue order' -- fixed with patch by gabrielrcp --- diff --git a/libtransmission/session.c b/libtransmission/session.c index c63a43765..6d4984e7d 100644 --- a/libtransmission/session.c +++ b/libtransmission/session.c @@ -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;