mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-15 08:03:36 -04:00
Stop resetting after every pair closes
This commit is contained in:
parent
58d07788c7
commit
b1116a1c35
4 changed files with 11 additions and 25 deletions
|
@ -78,8 +78,6 @@ class ProxyPair
|
|||
snowflake.state = Snowflake.MODE.INIT
|
||||
@flush()
|
||||
@close()
|
||||
# TODO: Change this for multiplexing.
|
||||
snowflake.reset()
|
||||
channel.onerror = -> log 'Data channel error!'
|
||||
channel.binaryType = "arraybuffer"
|
||||
channel.onmessage = @onClientToRelayMessage
|
||||
|
@ -149,6 +147,7 @@ class ProxyPair
|
|||
@client.close() if @webrtcIsReady()
|
||||
@relay.close() if @relayIsReady()
|
||||
relay = null
|
||||
@onCleanup()
|
||||
|
||||
# Send as much data in both directions as the rate limit currently allows.
|
||||
flush: =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue