Skip to content

Commit

Permalink
always set exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 29, 2016
1 parent 37b3488 commit 99994fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Queue/Console/WorkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 99994fe

Please sign in to comment.