diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-10 14:51:06 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-10 16:26:51 +0200 |
commit | 046fe5135c24f2dcd12378f1557845a79677a418 (patch) | |
tree | 481a7096ad700222d16eae6bdd53ec36e1911d6d /lib/Controller/HostedSignalingServerController.php | |
parent | c8598e399c450c446c67bfa12d455f9c8579fc99 (diff) |
Delete instead of setting to empty
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/HostedSignalingServerController.php')
-rw-r--r-- | lib/Controller/HostedSignalingServerController.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Controller/HostedSignalingServerController.php b/lib/Controller/HostedSignalingServerController.php index 800067c07..d35b8b1ed 100644 --- a/lib/Controller/HostedSignalingServerController.php +++ b/lib/Controller/HostedSignalingServerController.php @@ -122,10 +122,7 @@ class HostedSignalingServerController extends OCSController { // remove signaling servers if account is not active anymore $this->config->setAppValue('spreed', 'signaling_mode', 'internal'); - $this->config->setAppValue('spreed', 'signaling_servers', json_encode([ - 'servers' => [], - 'secret' => '', - ])); + $this->config->deleteAppValue('spreed', 'signaling_servers'); $this->logger->info('Deleted hosted signaling server account with ID ' . $accountId, ['app' => 'spreed']); } catch (HostedSignalingServerAPIException $e) { // API or connection issues |