diff --git a/src/Illuminate/Queue/Worker.php b/src/Illuminate/Queue/Worker.php index f5dc9166a273..c0d3a2f34a15 100644 --- a/src/Illuminate/Queue/Worker.php +++ b/src/Illuminate/Queue/Worker.php @@ -90,8 +90,13 @@ public function daemon($connectionName, $queue, WorkerOptions $options) */ protected function daemonShouldRun() { - return $this->manager->isDownForMaintenance() - ? false : $this->events->until('illuminate.queue.looping') !== false; + if ($this->manager->isDownForMaintenance() || $this->events->until('illuminate.queue.looping') === false) { + $this->sleep(1); + + return false; + } + + return true; } /**