1
0
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:
Kalle Olavi Niemitalo 2007-06-23 23:28:54 +03:00 committed by Witold Filipczyk
parent 712ffb13ee
commit af2f6e995a

View File

@ -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);
}