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:
parent
f450f27b26
commit
9182c34711
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue