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.
This commit is contained in:
David Baker 2014-09-25 11:24:49 +02:00
parent 6806caffc7
commit a31bf77776
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ class VoipConfig(Config):
def __init__(self, args):
super(VoipConfig, self).__init__(args)
self.turn_uris = args.turn_uris.split(",")
self.turn_uris = args.turn_uris.split(",") if args.turn_uris else None
self.turn_shared_secret = args.turn_shared_secret
self.turn_user_lifetime = args.turn_user_lifetime