We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 611891b commit 1b9ff65Copy full SHA for 1b9ff65
src/Queue/RabbitMQQueue.php
@@ -577,7 +577,7 @@ protected function getRandomId(): string
577
*/
578
public function close(): void
579
{
580
- if (! $this->currentJob->isDeletedOrReleased()) {
+ if (isset($this->currentJob) && ! $this->currentJob->isDeletedOrReleased()) {
581
$this->reject($this->currentJob, true);
582
}
583
0 commit comments