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.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/BackgroundJob/CheckMatterbridges.php b/lib/BackgroundJob/CheckMatterbridges.php
index 34eca71a0..65dfec841 100644
--- a/lib/BackgroundJob/CheckMatterbridges.php
+++ b/lib/BackgroundJob/CheckMatterbridges.php
@@ -23,9 +23,9 @@ declare(strict_types=1);
namespace OCA\Talk\BackgroundJob;
+use OCA\Talk\MatterbridgeManager;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\TimedJob;
-use OCA\Talk\MatterbridgeManager;
use OCP\IConfig;
use Psr\Log\LoggerInterface;
@@ -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.');
}
}