From: Vincent Vanwaelscappel Date: Tue, 22 Aug 2023 07:27:04 +0000 (+0200) Subject: try #6202 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7c5a77b7f3847cd75dd8dcdf5fdc9c5a2d40f0e1;p=cubist_util.git try #6202 --- 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; }