mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
on server errors, treat account as offline
Signed-off-by: Tayou <git@tayou.org>
This commit is contained in:
parent
803115cfde
commit
0a3adb7912
5 changed files with 18 additions and 4 deletions
|
|
@ -56,7 +56,7 @@ void XboxUserStep::onRequestDone(QByteArray* response)
|
|||
{
|
||||
if (m_request->error() != QNetworkReply::NoError) {
|
||||
qWarning() << "Reply error:" << m_request->error();
|
||||
if (Net::isApplicationError(m_request->error())) {
|
||||
if (Net::isApplicationError(m_request->error()) && !Net::isServerError(m_request->error())) {
|
||||
emit finished(AccountTaskState::STATE_FAILED_SOFT, tr("Xbox user authentication failed: %1").arg(m_request->errorString()));
|
||||
} else {
|
||||
emit finished(AccountTaskState::STATE_OFFLINE, tr("Xbox user authentication failed: %1").arg(m_request->errorString()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue