mirror of
https://github.com/anikeen-com/yaac.git
synced 2026-03-20 09:06:08 +00:00
Fix incorrect comparison when auto-retrying authorization
Previously only 1 attempt to authorize would be made
This commit is contained in:
@@ -284,7 +284,7 @@ class Client
|
|||||||
);
|
);
|
||||||
$data = json_decode((string)$response->getBody(), true);
|
$data = json_decode((string)$response->getBody(), true);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
} while ($maxAttempts < 0 && $data['status'] == 'pending');
|
} while ($maxAttempts > 0 && $data['status'] == 'pending');
|
||||||
|
|
||||||
return (isset($data['status']) && $data['status'] == 'valid');
|
return (isset($data['status']) && $data['status'] == 'valid');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user