[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] Remove deprecated callbacks
commit c8c5d56b73228920367396d7205d70bab12dacc6
Author: Arlo Breault <arlolra@xxxxxxxxx>
Date: Tue Dec 20 10:35:08 2016 -0800
Remove deprecated callbacks
---
proxy/snowflake.coffee | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/proxy/snowflake.coffee b/proxy/snowflake.coffee
index 5890fb2..92ef4ab 100644
--- a/proxy/snowflake.coffee
+++ b/proxy/snowflake.coffee
@@ -125,7 +125,6 @@ class Snowflake
try
offer = JSON.parse desc
dbg 'Received:\n\n' + offer.sdp + '\n'
- log offer
sdp = new SessionDescription offer
@sendAnswer pair if pair.receiveWebRTCOffer sdp
catch e
@@ -137,8 +136,9 @@ class Snowflake
pair.pc.setLocalDescription sdp
fail = ->
dbg 'webrtc: Failed to create Answer'
- promise = pair.pc.createAnswer next, fail
- promise.then next if promise
+ pair.pc.createAnswer()
+ .then next
+ .catch fail
makeProxyPair: (relay) ->
pair = new ProxyPair null, relay, @rateLimit
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits