Fix retry condition in token exchange logic

This commit is contained in:
Viktor Scharf authored and GitHub committed 2026-09-10 16:32:43 +02:00
1 parent 6937774311
commit 89fa598fd1
1 file changed
+1 -1
+1 -1
View File
@@ -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++;