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
|
|
@ -78,7 +78,7 @@ class Snowflake {
|
|||
}
|
||||
//set a timeout for channel creation
|
||||
return setTimeout((() => {
|
||||
if (!pair.running) {
|
||||
if (!pair.webrtcIsReady()) {
|
||||
log('proxypair datachannel timed out waiting for open');
|
||||
pair.close();
|
||||
return pair.active = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue