Skip to content

Commit

Permalink
Don't invalidate oauth refresh token on ConnectionRefusedError
Browse files Browse the repository at this point in the history
Fixes: #10654
  • Loading branch information
TheOneRing committed Apr 12, 2023
1 parent f8b9f6f commit 9f35fc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/10654
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Enhancement: Don't invalidate oauth refresh token on ConnectionRefusedError

https://github.com/owncloud/client/issues/10654
3 changes: 3 additions & 0 deletions src/libsync/creds/httpcredentials.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ bool HttpCredentials::refreshAccessTokenInternal(int tokenRefreshRetriesCount)
case QNetworkReply::OperationCanceledError:
[[fallthrough]];
case QNetworkReply::TemporaryNetworkFailureError:
[[fallthrough]];
// VPN not ready?
case QNetworkReply::ConnectionRefusedError:
nextTry = 0;
[[fallthrough]];
default:
Expand Down

0 comments on commit 9f35fc4

Please sign in to comment.