[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



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@xxxxxxxxxxxxxx>
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.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits