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@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(); }
/**