diff --git a/lib/MatterbridgeManager.php b/lib/MatterbridgeManager.php index 3b9687dee7e..2f5a0b4b71d 100644 --- a/lib/MatterbridgeManager.php +++ b/lib/MatterbridgeManager.php @@ -600,7 +600,7 @@ private function checkBridgeProcess(Room $room, array $bridge, bool $relaunch = // check if current $bridge parts (domain) are still valid before doing anything try { - $this->validateParts($bridge); // no return needed, validateParts will throw exception + $this->validateParts($bridge['parts']); // no return needed, validateParts will throw exception } catch (\InvalidArgumentException $e) { $this->logger->error($e->getMessage()); @@ -617,8 +617,7 @@ private function checkBridgeProcess(Room $room, array $bridge, bool $relaunch = ->where($query->expr()->eq( 'pid', $query->createNamedParameter($bridge['pid'], IQueryBuilder::PARAM_INT))); - $result = $query->executeQuery(); - $result->closeCursor(); + $query->executeStatement(); } return $pid; // pid remains unchanged 0, i.e. no process with invalid parts running