[tor-commits] [pluggable-transports/snowflake-webext] 01/06: perf: do `flush()` before less important stuff

gitolite role git at cupani.torproject.org
Thu Nov 3 17:15:57 UTC 2022


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

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

commit bf3d845633c98ce2da51a97dc5241341e2975581
Author: WofWca <wofwca at protonmail.com>
AuthorDate: Fri Jul 15 18:22:04 2022 +0300

    perf: do `flush()` before less important stuff
    
    This setTimeout was introduced in 37f168881
---
 proxypair.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/proxypair.js b/proxypair.js
index 481d0cd..1957301 100644
--- a/proxypair.js
+++ b/proxypair.js
@@ -171,10 +171,9 @@ class ProxyPair {
   onClientToRelayMessage(msg) {
     dbg('WebRTC --> websocket data: ' + msg.data.byteLength + ' bytes');
     this.c2rSchedule.push(msg.data);
+    this.flush();
 
     this.refreshStaleTimeout();
-
-    this.flush();
   }
 
   /**

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


More information about the tor-commits mailing list