summaryrefslogtreecommitdiffstats
path: root/web/react/stores
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-02-26 11:44:34 -0800
committer=Corey Hulen <corey@hulen.com>2016-02-26 11:44:34 -0800
commit5a1ca435c9e4fe667159b76d8a0961188529d0f9 (patch)
tree32b5e7954663843d6f61584d93456f92181f9d52 /web/react/stores
parenta0cc464c973fe0b2ca8aa1fa386656435bdbfbec (diff)
downloadchat-5a1ca435c9e4fe667159b76d8a0961188529d0f9.tar.gz
chat-5a1ca435c9e4fe667159b76d8a0961188529d0f9.tar.bz2
chat-5a1ca435c9e4fe667159b76d8a0961188529d0f9.zip
Fxing initial connection
Diffstat (limited to 'web/react/stores')
-rw-r--r--web/react/stores/socket_store.jsx4
1 files changed, 4 insertions, 0 deletions
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);