mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 14:11:23 -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()
|
||||
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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue