Skip to content

Commit

Permalink
Qt: Fix rare crash during update download
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePLMonster committed Apr 23, 2024
1 parent 59d7a36 commit 247c907
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pcsx2-qt/AutoUpdaterDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,11 @@ 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())
{
Expand Down

0 comments on commit 247c907

Please sign in to comment.