mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
fix(updater): do not reset current task in finished signal
The order of signals in case of a success is "succeeded"->"finished" The "succeeded" signal may launch another download if the updater needs to fetch more pages But if we reset the task then the newly started download will be disposed and the updater will softlock Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
a17a45c748
commit
9b270f783e
|
|
@ -1160,8 +1160,6 @@ void PrismUpdaterApp::downloadReleasePage(const QString& api_url, int page)
|
|||
m_current_task.reset(download);
|
||||
connect(download.get(), &Net::Download::finished, this, [this]() {
|
||||
qDebug() << "Download" << m_current_task->getUid().toString() << "finished";
|
||||
m_current_task.reset();
|
||||
m_current_url = "";
|
||||
});
|
||||
|
||||
QCoreApplication::processEvents();
|
||||
|
|
|
|||
Loading…
Reference in a new issue