Ticket #5298: queue-order-fix.diff
File queue-order-fix.diff, 599 bytes (added by gabrielrcp, 9 years ago) |
---|
-
libtransmission/session.c
2796 2796 int position; 2797 2797 }; 2798 2798 2799 /* higher positions come first */2800 2799 static int 2801 2800 compareTorrentAndPositions (const void * va, const void * vb) 2802 2801 { … … 2805 2804 const struct TorrentAndPosition * b = vb; 2806 2805 2807 2806 if (a->position > b->position) 2807 ret = 1; 2808 else if (a->position < b->position) 2808 2809 ret = -1; 2809 else if (a->position < b->position)2810 ret = 1;2811 2810 else 2812 2811 ret = 0; 2813 2812