1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

#5298 'Transmission not holding queue order' -- fixed with patch by gabrielrcp

This commit is contained in:
Jordan Lee 2013-08-17 16:20:32 +00:00
parent f450f27b26
commit 9182c34711

View file

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