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-04-07 12:15:11 +0300
committerJoas Schilling <coding@schilljs.com>2020-04-07 12:15:11 +0300
commit16b90ecf3e59e96cdc4f2ed5eff483c636d2d381 (patch)
treecbf18b6598e3b607b80a1d1c7ef2a79da1a6869b /lib/Signaling/BackendNotifier.php
parentfc1280a084bf510598328a1dca3cc78c7831014a (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.php9
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',
+ ]);
+ }
}
/**