mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-02 19:36:57 +03:00
on server errors, treat account as offline
Signed-off-by: Tayou <git@tayou.org>
(cherry picked from commit 0a3adb7912)
This commit is contained in:
parent
ed239ac6eb
commit
7478c97ccd
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