mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Close connections before unloading
Noticed a long delay after the window closed before the datachannel timed out. 2016/03/18 13:53:16 Traffic Bytes (in|out): 202576 | 8087 2016/03/18 13:58:10 WebRTC: DataChannel.OnClose [remotely]
This commit is contained in:
parent
2ac12c5b8d
commit
cf1b0a49f1
1 changed files with 4 additions and 0 deletions
|
@ -226,4 +226,8 @@ window.onbeforeunload = ->
|
|||
return CONFIRMATION_MESSAGE
|
||||
null
|
||||
|
||||
window.onunload = ->
|
||||
pair.close() for pair in snowflake.proxyPairs
|
||||
null
|
||||
|
||||
window.onload = init if window
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue