mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +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;
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue