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.
2 parents 611891b + 1b9ff65 commit cda3f82Copy full SHA for cda3f82
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