mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Bug 920, move_download: Sort the queue before calling cancel_download.
This commit is contained in:
parent
712ffb13ee
commit
af2f6e995a
@ -1078,6 +1078,10 @@ move_download(struct download *old, struct download *new,
|
||||
|
||||
conn->pri[new->pri]++;
|
||||
add_to_list(conn->downloads, new);
|
||||
/* In principle, we need to sort_queue() only if conn->pri[new->pri]
|
||||
* just changed from 0 to 1. But the risk of bugs is smaller if we
|
||||
* sort every time. */
|
||||
sort_queue();
|
||||
|
||||
cancel_download(old, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user