diff --git a/lib/Alchemy/Phrasea/WorkerManager/Queue/AMQPConnection.php b/lib/Alchemy/Phrasea/WorkerManager/Queue/AMQPConnection.php index 3fd5e31e52..c7f60ab592 100644 --- a/lib/Alchemy/Phrasea/WorkerManager/Queue/AMQPConnection.php +++ b/lib/Alchemy/Phrasea/WorkerManager/Queue/AMQPConnection.php @@ -310,7 +310,7 @@ class AMQPConnection public function getConnection() { - if (!isset($this->connection)) { + if (empty($this->connection)) { try { $heartbeat = $this->hostConfig['heartbeat'] ?? 60;