From cb77cc1219e6952724d83ec59af2a17b2309ccf5 Mon Sep 17 00:00:00 2001 From: TheKodeToad Date: Mon, 3 Mar 2025 20:24:07 +0000 Subject: [PATCH] Use refresh instead of requestRefresh on LaunchController::login There should be no reason to queue it and it could cause problems with the launcher's rate limiting Signed-off-by: TheKodeToad --- launcher/LaunchController.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/launcher/LaunchController.cpp b/launcher/LaunchController.cpp index 03f2d28d9..ce9ce89d0 100644 --- a/launcher/LaunchController.cpp +++ b/launcher/LaunchController.cpp @@ -200,8 +200,7 @@ void LaunchController::login() m_accountToUse->shouldRefresh()) { // Force account refresh on the account used to launch the instance updating the AccountState // only on first try and if it is not meant to be offline - auto accounts = APPLICATION->accounts(); - accounts->requestRefresh(m_accountToUse->internalId()); + m_accountToUse->refresh(); } while (tryagain) { if (tries > 0 && tries % 3 == 0) {