#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
1 changed files with 2 additions and 3 deletions

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;