From 5a1ca435c9e4fe667159b76d8a0961188529d0f9 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Fri, 26 Feb 2016 11:44:34 -0800 Subject: Fxing initial connection --- web/react/stores/socket_store.jsx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/react/stores') diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx index 46f322e5f..c07f59738 100644 --- a/web/react/stores/socket_store.jsx +++ b/web/react/stores/socket_store.jsx @@ -58,6 +58,10 @@ class SocketStoreClass extends EventEmitter { if (this.failCount === 0) { console.log('websocket connecting to ' + connUrl); //eslint-disable-line no-console + if (ErrorStore.getConnectionErrorCount() > 0) { + ErrorStore.setConnectionErrorCount(0); + ErrorStore.emitChange(); + } } conn = new WebSocket(connUrl); -- cgit v1.2.3-1-g7c22