Skip to content

Commit e5ed2bf

Browse files
authored
Merge pull request #22 from SpeksForks/master
Break on 401 as well
2 parents 5d424b2 + 2bdacb3 commit e5ed2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ExponentialBackoff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function execute(callable $function, array $arguments = [])
6161
}
6262
}
6363

64-
if ($exception->getCode() == 403) {
64+
if ($exception->getCode() == 401 || $exception->getCode() == 403) {
6565
break;
6666
}
6767

0 commit comments

Comments
 (0)