summaryrefslogtreecommitdiffstats
path: root/lib/BackgroundJob/CheckMatterbridges.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/BackgroundJob/CheckMatterbridges.php')
-rw-r--r--lib/BackgroundJob/CheckMatterbridges.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/BackgroundJob/CheckMatterbridges.php b/lib/BackgroundJob/CheckMatterbridges.php
index 34eca71a0..4b256f064 100644
--- a/lib/BackgroundJob/CheckMatterbridges.php
+++ b/lib/BackgroundJob/CheckMatterbridges.php
@@ -63,9 +63,11 @@ class CheckMatterbridges extends TimedJob {
if ($this->serverConfig->getAppValue('spreed', 'enable_matterbridge', '0') === '1') {
$this->bridgeManager->checkAllBridges();
$this->bridgeManager->killZombieBridges();
+ $this->logger->info('Checked if Matterbridge instances are running correctly.');
} else {
- $this->bridgeManager->stopAllBridges();
+ if ($this->bridgeManager->stopAllBridges()) {
+ $this->logger->info('Stopped all Matterbridge instances as it is disabled');
+ }
}
- $this->logger->info('Checked if Matterbridge instances are running correctly.');
}
}