diff options
Diffstat (limited to 'src/oauth/qoauth2authorizationcodeflow.cpp')
| -rw-r--r-- | src/oauth/qoauth2authorizationcodeflow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/oauth/qoauth2authorizationcodeflow.cpp b/src/oauth/qoauth2authorizationcodeflow.cpp index c707703..11583e0 100644 --- a/src/oauth/qoauth2authorizationcodeflow.cpp +++ b/src/oauth/qoauth2authorizationcodeflow.cpp @@ -177,7 +177,8 @@ void QOAuth2AuthorizationCodeFlowPrivate::initializeAutoRefresh() { Q_Q(QOAuth2AuthorizationCodeFlow); QObject::connect(q, &QAbstractOAuth2::accessTokenAboutToExpire, q, [q] { - if (q->autoRefresh() && !(q->refreshToken().isEmpty())) + if (q->autoRefresh() && !(q->refreshToken().isEmpty()) + && (!(q->status() == QOAuth2AuthorizationCodeFlow::Status::RefreshingToken))) q->refreshAccessToken(); }); } |
