[tor-commits] [snowflake/master] Disconnections from websocket side also resets browser proxy
serene at torproject.org
serene at torproject.org
Thu Feb 18 22:15:38 UTC 2016
commit e35687b587f219e8c1b1323e09765b3ec85daf69
Author: Serene Han <keroserene+git at gmail.com>
Date: Wed Feb 17 19:55:43 2016 -0800
Disconnections from websocket side also resets browser proxy
---
proxy/proxypair.coffee | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/proxy/proxypair.coffee b/proxy/proxypair.coffee
index e7adfb9..b8db513 100644
--- a/proxy/proxypair.coffee
+++ b/proxy/proxypair.coffee
@@ -63,7 +63,7 @@ class ProxyPair
@connectRelay()
channel.onclose = ->
log 'WebRTC DataChannel closed.'
- snowflake.ui.setStatus 'disconnected.'
+ snowflake.ui.setStatus 'disconnected by webrtc.'
snowflake.ui.setActive false
snowflake.state = MODE.INIT
# Change this for multiplexing.
@@ -105,6 +105,9 @@ class ProxyPair
onClose: (event) =>
ws = event.target
log ws.label + ' closed.'
+ snowflake.ui.setStatus 'disconnected.'
+ snowflake.ui.setActive false
+ snowflake.state = MODE.INIT
@flush()
@maybeCleanup()
More information about the tor-commits
mailing list