fix proxy createAnswer error handling for updated WebRTC syntax

This commit is contained in:
Serene Han 2016-05-02 11:10:45 -07:00
parent d567e2312f
commit 6a8c88fe64
2 changed files with 6 additions and 3 deletions

View file

@ -134,7 +134,9 @@ class Snowflake
next = (sdp) ->
dbg 'webrtc: Answer ready.'
pair.pc.setLocalDescription sdp
promise = pair.pc.createAnswer next
fail = ->
dbg 'webrtc: Failed to create Answer'
promise = pair.pc.createAnswer next, fail
promise.then next if promise
makeProxyPair: (relay) ->