mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Disconnections from websocket side also resets browser proxy
This commit is contained in:
parent
8a2e7a6041
commit
e35687b587
1 changed files with 4 additions and 1 deletions
|
@ -63,7 +63,7 @@ class ProxyPair
|
||||||
@connectRelay()
|
@connectRelay()
|
||||||
channel.onclose = ->
|
channel.onclose = ->
|
||||||
log 'WebRTC DataChannel closed.'
|
log 'WebRTC DataChannel closed.'
|
||||||
snowflake.ui.setStatus 'disconnected.'
|
snowflake.ui.setStatus 'disconnected by webrtc.'
|
||||||
snowflake.ui.setActive false
|
snowflake.ui.setActive false
|
||||||
snowflake.state = MODE.INIT
|
snowflake.state = MODE.INIT
|
||||||
# Change this for multiplexing.
|
# Change this for multiplexing.
|
||||||
|
@ -105,6 +105,9 @@ class ProxyPair
|
||||||
onClose: (event) =>
|
onClose: (event) =>
|
||||||
ws = event.target
|
ws = event.target
|
||||||
log ws.label + ' closed.'
|
log ws.label + ' closed.'
|
||||||
|
snowflake.ui.setStatus 'disconnected.'
|
||||||
|
snowflake.ui.setActive false
|
||||||
|
snowflake.state = MODE.INIT
|
||||||
@flush()
|
@flush()
|
||||||
@maybeCleanup()
|
@maybeCleanup()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue