diff --git a/src/Illuminate/Queue/Console/WorkCommand.php b/src/Illuminate/Queue/Console/WorkCommand.php index 1ae918f6a3be..586fa6ea71f7 100755 --- a/src/Illuminate/Queue/Console/WorkCommand.php +++ b/src/Illuminate/Queue/Console/WorkCommand.php @@ -90,13 +90,13 @@ public function fire() */ protected function runWorker($connection, $queue, $delay, $memory, $daemon = false) { + $this->worker->setDaemonExceptionHandler( + $this->laravel['Illuminate\Contracts\Debug\ExceptionHandler'] + ); + if ($daemon) { $this->worker->setCache($this->laravel['cache']->driver()); - $this->worker->setDaemonExceptionHandler( - $this->laravel['Illuminate\Contracts\Debug\ExceptionHandler'] - ); - return $this->worker->daemon( $connection, $queue, $delay, $memory, $this->option('sleep'), $this->option('tries')