Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions Launcher/src/auth/nostaleauth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,18 +226,17 @@ QString NostaleAuth::getToken(const QString &accountId)
return {};
}

// This sleep is a MUST, otherwise the request to thin/codes will fail
QThread::sleep(std::chrono::seconds(1));
for (int attempt = 0; attempt < 3; ++attempt) {
// This sleep is a MUST, otherwise the request to thin/codes will fail
QThread::sleep(std::chrono::seconds(1));
QString code = sendThinCodes(accountId);

// if (!sendGameLaunch(accountId)) {
// return {};
// }

// if (!sendGameStarted(accountId)) {
// return {};
// }
if (!code.isEmpty()) {
return code;
}
}

return sendThinCodes(accountId);
return {};
}

QChar NostaleAuth::getFirstNumber(QString uuid)
Expand Down