mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-15 17:14:37 -04: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 */
|
/* Releasing immediately does not add in the backoff */
|
||||||
$this->release($this->backoff()[$this->attempts()-1]);
|
$this->release($this->backoff()[$this->attempts()-1]);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/*Clean up mailers*/
|
/*Clean up mailers*/
|
||||||
$this->cleanUpMailers();
|
$this->cleanUpMailers();
|
||||||
|
|
||||||
@ -649,7 +649,8 @@ class NinjaMailerJob implements ShouldQueue
|
|||||||
|
|
||||||
public function failed($exception = null)
|
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]);
|
$this->release($this->backoff()[$this->attempts()-1]);
|
||||||
|
|
||||||
$message = null;
|
$message = null;
|
||||||
$this->cleanUpMailers();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->cleanUpMailers();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user