[tor-commits] [pluggable-transports/snowflake-webext] 01/08: refactor: rename `pollTimeout` -> `pollTimeoutId`

gitolite role git at cupani.torproject.org
Wed Jul 6 09:01:40 UTC 2022


This is an automated email from the git hooks/post-receive script.

meskio pushed a commit to branch main
in repository pluggable-transports/snowflake-webext.

commit 97db970c3a757fadd995daad598f40e048a08f16
Author: WofWca <wofwca at protonmail.com>
AuthorDate: Sat Jun 18 17:08:19 2022 +0300

    refactor: rename `pollTimeout` -> `pollTimeoutId`
---
 snowflake.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/snowflake.js b/snowflake.js
index 7370f01..a87d7bb 100644
--- a/snowflake.js
+++ b/snowflake.js
@@ -45,7 +45,7 @@ class Snowflake {
   // process. |pollBroker| automatically arranges signalling.
   beginWebRTC() {
     this.pollBroker();
-    return this.pollTimeout = setTimeout((() => {
+    return this.pollTimeoutId = setTimeout((() => {
       return this.beginWebRTC();
     }), this.pollInterval);
   }
@@ -189,7 +189,7 @@ class Snowflake {
   disable() {
     var results;
     log('Disabling Snowflake.');
-    clearTimeout(this.pollTimeout);
+    clearTimeout(this.pollTimeoutId);
     results = [];
     while (this.proxyPairs.length > 0) {
       results.push(this.proxyPairs.pop().close());

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list