From bd77c07442d34703980cdfc4df9975f70a3dc425 Mon Sep 17 00:00:00 2001 From: Melek REBAI Date: Fri, 18 Nov 2016 15:33:55 +0100 Subject: [PATCH] [5.3] Don't timeout queue if it's 0 --- src/Illuminate/Queue/Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }