Stop resetting after every pair closes

This commit is contained in:
Arlo Breault 2019-06-29 18:09:12 -04:00 committed by Cecylia Bocovich
parent 58d07788c7
commit b1116a1c35
4 changed files with 11 additions and 25 deletions

View file

@ -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: =>