diff --git a/src/Illuminate/Queue/Worker.php b/src/Illuminate/Queue/Worker.php index 20bff5abf912..d3ca310802a8 100644 --- a/src/Illuminate/Queue/Worker.php +++ b/src/Illuminate/Queue/Worker.php @@ -92,7 +92,7 @@ public function daemon($connectionName, $queue, WorkerOptions $options) */ protected function registerTimeoutHandler(WorkerOptions $options) { - if (version_compare(PHP_VERSION, '7.1.0') < 0 || ! extension_loaded('pcntl')) { + if ($options->timeout == 0 || version_compare(PHP_VERSION, '7.1.0') < 0 || ! extension_loaded('pcntl')) { return; }