commit 064875cc29b1310a87b327016ab3bde7d293a536 Author: Arlo Breault arlolra@gmail.com Date: Tue May 10 17:04:03 2016 -0700
Fix some logging --- proxy/proxypair.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/proxy/proxypair.coffee b/proxy/proxypair.coffee index 20cbbb5..b14ec51 100644 --- a/proxy/proxypair.coffee +++ b/proxy/proxypair.coffee @@ -92,9 +92,8 @@ class ProxyPair @relay.onopen = => log @relay.label + ' connected!' snowflake.ui.setStatus 'connected' - @relay.onclose = (event) => - ws = event.target - log ws.label + ' closed.' + @relay.onclose = => + log @relay.label + ' closed.' snowflake.ui.setStatus 'disconnected.' snowflake.ui.setActive false snowflake.state = MODE.INIT @@ -104,7 +103,7 @@ class ProxyPair @relay.onmessage = @onRelayToClientMessage # TODO: Better websocket timeout handling. setTimeout((=> - log ws.label + ' timed out connecting.' + log @relay.label + ' timed out connecting.' @relay.onclose()), 5000)
# WebRTC --> websocket
tor-commits@lists.torproject.org