1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +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;
};
/* 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;