mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Remove property "running" from proxy-pair
We don't need it, and already have a function webrtcIsReady that tells us what we need to know (whether a datachannel was opened before the timeout period).
This commit is contained in:
parent
9b470fbe4b
commit
d186fcd401
2 changed files with 1 additions and 5 deletions
|
@ -88,7 +88,6 @@ class ProxyPair {
|
|||
if (!this.active) {
|
||||
return;
|
||||
}
|
||||
this.running = true;
|
||||
snowflake.ui.setActive(true);
|
||||
// This is the point when the WebRTC datachannel is done, so the next step
|
||||
// is to establish websocket to the server.
|
||||
|
@ -191,7 +190,6 @@ class ProxyPair {
|
|||
this.relay = null;
|
||||
this.onCleanup();
|
||||
this.active = false;
|
||||
this.running = false;
|
||||
}
|
||||
|
||||
flush() {
|
||||
|
@ -255,8 +253,6 @@ ProxyPair.prototype.relay = null; // websocket
|
|||
|
||||
ProxyPair.prototype.timer = 0;
|
||||
|
||||
ProxyPair.prototype.running = false; // Whether a datachannel is opened
|
||||
|
||||
ProxyPair.prototype.active = false; // Whether serving a client.
|
||||
|
||||
ProxyPair.prototype.flush_timeout_id = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue