diff options
author | Joas Schilling <coding@schilljs.com> | 2020-04-07 12:15:11 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-04-07 12:15:11 +0300 |
commit | 16b90ecf3e59e96cdc4f2ed5eff483c636d2d381 (patch) | |
tree | cbf18b6598e3b607b80a1d1c7ef2a79da1a6869b /lib/Signaling/BackendNotifier.php | |
parent | fc1280a084bf510598328a1dca3cc78c7831014a (diff) |
Also don't break on the API when the signaling server is down
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Signaling/BackendNotifier.php')
-rw-r--r-- | lib/Signaling/BackendNotifier.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Signaling/BackendNotifier.php b/lib/Signaling/BackendNotifier.php index 59bb62d52..8e79ac4ed 100644 --- a/lib/Signaling/BackendNotifier.php +++ b/lib/Signaling/BackendNotifier.php @@ -66,7 +66,14 @@ class BackendNotifier { } $client = $this->clientService->newClient(); - $client->post($url, $params); + try { + $client->post($url, $params); + } catch (\Exception $e) { + $this->logger->logException($e, [ + 'app' => 'spreed', + 'message' => 'Failed to send message to signaling server', + ]); + } } /** |