mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-12 21:58:58 -04:00
Fix retry condition in token exchange logic
This commit is contained in:
1 parent
6937774311
commit
89fa598fd1
1 file changed
+1
-1
@@ -51,7 +51,7 @@ class TokenHelper {
|
||||
try {
|
||||
return $exchange();
|
||||
} catch (GuzzleException $e) {
|
||||
if ($attempt >= self::TRANSPORT_RETRY_LIMIT) {
|
||||
if ($attempt == self::TRANSPORT_RETRY_LIMIT) {
|
||||
throw $e;
|
||||
}
|
||||
$attempt++;
|
||||
|
||||
Reference in new issue
Block a user