diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-22 15:45:15 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-09-22 15:45:15 +0300 |
commit | ce87e93999650366e2540ae0b90b8bb31a9e7ecd (patch) | |
tree | 22b56511f5dc98ac589d69c6a673eeba604b2679 /lib/MatterbridgeManager.php | |
parent | af9fa0de1f0f136e0e726028fea29adb916ecf74 (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.php | 6 |
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) { |