Skip to content

Commit

Permalink
Merge pull request #10 from nlx-lars/nlx-lars/destruct-queue
Browse files Browse the repository at this point in the history
BUGFIX: Close RabbitMq connection in destructor
  • Loading branch information
johannessteu authored Apr 20, 2020
2 parents d609600 + aa66b96 commit aa51589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Queue/RabbitQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function flush(): void
$this->channel->queue_purge($this->queueName);
}

public function shutdownObject(): void
public function __destruct()
{
$this->channel->close();
$this->connection->close();
Expand Down

0 comments on commit aa51589

Please sign in to comment.