mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for ninja mailer
This commit is contained in:
parent
60472bf151
commit
9c66c3b741
@ -207,11 +207,11 @@ class NinjaMailerJob implements ShouldQueue
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* Releasing immediately does not add in the backoff */
|
||||
$this->release($this->backoff()[$this->attempts()-1]);
|
||||
|
||||
}
|
||||
|
||||
/*Clean up mailers*/
|
||||
$this->cleanUpMailers();
|
||||
|
||||
@ -649,7 +649,8 @@ class NinjaMailerJob implements ShouldQueue
|
||||
|
||||
public function failed($exception = null)
|
||||
{
|
||||
|
||||
if($exception)
|
||||
nlog($exception->getMessage());
|
||||
}
|
||||
|
||||
}
|
@ -141,10 +141,12 @@ class EmailMailer implements ShouldQueue
|
||||
$this->release($this->backoff()[$this->attempts()-1]);
|
||||
|
||||
$message = null;
|
||||
$this->cleanUpMailers();
|
||||
|
||||
|
||||
}
|
||||
|
||||
$this->cleanUpMailers();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user