]> _ Git - cubist_util.git/commitdiff
try #6202
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 22 Aug 2023 07:27:04 +0000 (09:27 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 22 Aug 2023 07:27:04 +0000 (09:27 +0200)
src/PHP.php

index b6e51c6baf604a9ffbe617400d9707fa8629bf50..43b52f154dd0d25c7ca6cf9c4e6f0b6d833b2a72 100644 (file)
@@ -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;
         }