ctucx.git: smartie-pwa

[js] smarthome web-gui

commit 3fe40dfd8211f05751c3df98402eb2367636a6f7
parent b95c11fb11b57813f388a83eb1846c2aa9baf577
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 18 Feb 2021 17:09:20 +0100

clear timeout func on connect
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/state.js b/src/state.js
@@ -60,6 +60,7 @@ class State {
 			console.log("connection was closed!")
 		};
 		this.ws.onopen = () => {
+			clearInterval(this._timeout);
 			this.connected = true;
 			this._updateSubscribers();
 			this.ws.send(JSON.stringify({