summary refs log tree commit diff
path: root/synapse/rest/voip.py
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2014-09-25 11:24:49 +0200
committerDavid Baker <dbkr@matrix.org>2014-09-25 11:24:49 +0200
commita31bf7777694d794d8e861c2bfede4a8ebb8849e (patch)
tree1a8895df131cfdcf4481ca21192027f9d2f42b52 /synapse/rest/voip.py
parentRefresh turn server before the ttl runs out. Support firefox. (diff)
downloadsynapse-a31bf7777694d794d8e861c2bfede4a8ebb8849e.tar.xz
Make turn server endpoint return an empty object if no turn servers to
match the normal response. Don't break if the turn_uris option isn't
present.
Diffstat (limited to 'synapse/rest/voip.py')
-rw-r--r--synapse/rest/voip.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/voip.py b/synapse/rest/voip.py
index 7260ff0e8e..2e4627606f 100644
--- a/synapse/rest/voip.py
+++ b/synapse/rest/voip.py
@@ -34,7 +34,7 @@ class VoipRestServlet(RestServlet):
         turnSecret = self.hs.config.turn_shared_secret
         userLifetime = self.hs.config.turn_user_lifetime
         if not turnUris or not turnSecret or not userLifetime:
-            defer.returnValue( (200, {"uris": []}) )
+            defer.returnValue( (200, {}) )
 
         expiry = self.hs.get_clock().time_msec() + userLifetime
         username = "%d:%s" % (expiry, auth_user.to_string())