From 36f66e7ea5137005ec3ecc68e7218cb5c85cfef0 Mon Sep 17 00:00:00 2001 From: Chen-I Lim <46905241+chenilim@users.noreply.github.com> Date: Mon, 10 Jan 2022 11:34:51 -0800 Subject: [PATCH] Gh 2077 mac app update (#2078) * Fix #2077. Mac app sometimes stops updating. * Cleanup logging --- webapp/src/wsclient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/wsclient.ts b/webapp/src/wsclient.ts index 5aeae8a88..2a60c1902 100644 --- a/webapp/src/wsclient.ts +++ b/webapp/src/wsclient.ts @@ -256,10 +256,10 @@ class WSClient { ws.onopen = () => { Utils.log('WSClient webSocket opened.') + this.state = 'open' for (const handler of this.onStateChange) { handler(this, 'open') } - this.state = 'open' } ws.onerror = (e) => {