Qt: Fix rare crash during update download

This commit is contained in:
Silent 2024-04-23 11:33:01 +02:00 committed by Connor McLaughlin
parent 59d7a36068
commit c5604472f6
1 changed files with 5 additions and 0 deletions

View File

@ -503,6 +503,11 @@ void AutoUpdaterDialog::downloadUpdateClicked()
}, },
&progress); &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. // Block until completion.
while (m_http->HasAnyRequests()) while (m_http->HasAnyRequests())
{ {