Commit dc1a67a 1 parent 844fb42 commit dc1a67a Copy full SHA for dc1a67a
File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ Bugfix: Correctly detect timeouts during token refrshs
2
+
3
+ https://github.com/owncloud/client/pull/10373
Original file line number Diff line number Diff line change @@ -293,12 +293,15 @@ bool HttpCredentials::refreshAccessTokenInternal(int tokenRefreshRetriesCount)
293
293
timeout = 0s;
294
294
break ;
295
295
case QNetworkReply::HostNotFoundError:
296
- Q_FALLTHROUGH () ;
296
+ [[fallthrough]] ;
297
297
case QNetworkReply::TimeoutError:
298
- Q_FALLTHROUGH ();
298
+ [[fallthrough]];
299
+ // Qt reports OperationCanceledError if the request timed out
300
+ case QNetworkReply::OperationCanceledError:
301
+ [[fallthrough]];
299
302
case QNetworkReply::TemporaryNetworkFailureError:
300
303
nextTry = 0 ;
301
- Q_FALLTHROUGH () ;
304
+ [[fallthrough]] ;
302
305
default :
303
306
timeout = 30s;
304
307
}
You can’t perform that action at this time.
0 commit comments