From 7c5a77b7f3847cd75dd8dcdf5fdc9c5a2d40f0e1 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 22 Aug 2023 09:27:04 +0200 Subject: [PATCH] try #6202 --- src/PHP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PHP.php b/src/PHP.php index b6e51c6..43b52f1 100644 --- a/src/PHP.php +++ b/src/PHP.php @@ -90,10 +90,10 @@ class PHP return call_user_func($callback); } catch (\Exception $e) { if ($attempts > 0) { - if ($pauseBetweenAttemps > 0) { + if ($pauseBetweenAttempts > 0) { usleep($pauseBetweenAttempts / 1000000); } - return self::retryOnError($callback, $attempts - 1); + return self::retryOnError($callback, $attempts - 1, $pauseBetweenAttempts); } throw $e; } -- 2.39.5