Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-09-22 15:45:15 +0300
committerJoas Schilling <coding@schilljs.com>2020-09-22 15:45:15 +0300
commitce87e93999650366e2540ae0b90b8bb31a9e7ecd (patch)
tree22b56511f5dc98ac589d69c6a673eeba604b2679 /lib/MatterbridgeManager.php
parentaf9fa0de1f0f136e0e726028fea29adb916ecf74 (diff)
When no bridges are running we are done
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/MatterbridgeManager.php')
-rw-r--r--lib/MatterbridgeManager.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/MatterbridgeManager.php b/lib/MatterbridgeManager.php
index 22d758fde..42980ee38 100644
--- a/lib/MatterbridgeManager.php
+++ b/lib/MatterbridgeManager.php
@@ -663,6 +663,12 @@ class MatterbridgeManager {
foreach ($output as $o) {
array_push($runningPidList, intval($o));
}
+
+ if (empty($runningPidList)) {
+ // No processes running, so also no zombies
+ return;
+ }
+
// get list of what should be running
$expectedPidList = [];
$this->manager->forAllRooms(function ($room) use (&$expectedPidList) {