diff --git a/app/http.php b/app/http.php index 7c6071c..b18fca4 100644 --- a/app/http.php +++ b/app/http.php @@ -1273,7 +1273,7 @@ function (string $runtimeId, ?string $payload, string $path, string $method, mix // Execute function $executionRequest = $version === 'v4' ? $executeV4 : $executeV2; - while (\microtime(true) - $startTime < $timeout) { + do { $executionResponse = \call_user_func($executionRequest); if ($executionResponse['errNo'] === CURLE_OK) { break; @@ -1285,7 +1285,7 @@ function (string $runtimeId, ?string $payload, string $path, string $method, mix } break; - } + } while (\microtime(true) - $startTime < $timeout); if ($executionResponse['errNo'] !== CURLE_OK) { $log->addExtra('activeRuntime', $activeRuntimes->get($runtimeName));