Qt: Fix rare crash during update download

Thanks to Silent for debugging.
This commit is contained in:
Stenzek 2024-04-23 16:25:36 +10:00
parent b4999975db
commit 52bdbf35db
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -440,6 +440,10 @@ void AutoUpdaterDialog::downloadUpdateClicked()
},
&progress);
// Since we're going to block, don't allow the timer to poll, otherwise the progress callback can cause the timer to
// run, and recursively poll again.
m_http_poll_timer->stop();
// Block until completion.
while (m_http->HasAnyRequests())
{