Skip to content

Commit 9f0f3e8

Browse files
authored
fix(login): fix ely.by accounts refreshing with no internet (#74)
2 parents 584ec2a + 87392a8 commit 9f0f3e8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

launcher/minecraft/auth/elyby/steps/ElybyAuthStep.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ void ElybyAuthStep::onRequestDone()
5757
if (m_request->error() != QNetworkReply::NoError) {
5858
qWarning() << "Reply error:" << m_request->error();
5959
emit finished(AccountTaskState::STATE_OFFLINE, tr("Failed to get authorization for Elyby: %1").arg(m_request->errorString()));
60+
return;
6061
}
6162

6263
auto jsonResponse = QJsonDocument::fromJson(*m_response);

launcher/minecraft/auth/elyby/steps/ElybyRefreshStep.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ void ElybyRefreshStep::onRequestDone()
5757
if (m_request->error() != QNetworkReply::NoError) {
5858
qWarning() << "Reply error:" << m_request->error();
5959
emit finished(AccountTaskState::STATE_OFFLINE, tr("Failed to refresh authorization for Elyby: %1").arg(m_request->errorString()));
60+
return;
6061
}
6162

6263
auto jsonResponse = QJsonDocument::fromJson(*m_response);

0 commit comments

Comments
 (0)