GH-4071 handle invalid MSA refresh token as a hard error

This commit is contained in:
Petr Mrázek 2021-11-28 19:01:21 +01:00
parent 285188ea53
commit 859d710581
2 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,7 @@
cmake_minimum_required(VERSION 3.1)
project(LocalPeer)
find_package(Qt5Core REQUIRED QUIET)
find_package(Qt5Network REQUIRED QUIET)
find_package(Qt5 COMPONENTS Core Network REQUIRED)
set(SINGLE_SOURCES
src/LocalPeer.cpp

View File

@ -428,6 +428,7 @@ void DeviceFlow::onRefreshError(QNetworkReply::NetworkError error, QNetworkReply
case QNetworkReply::AuthenticationRequiredError:
case QNetworkReply::ContentAccessDenied:
case QNetworkReply::ContentOperationNotPermittedError:
case QNetworkReply::ProtocolInvalidOperationError:
updateActivity(Activity::FailedHard);
break;
case QNetworkReply::ContentGoneError: {