summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-12-07 16:03:42 -0800
committer=Corey Hulen <corey@hulen.com>2015-12-07 16:03:42 -0800
commit75a2ce062a0b36d13153cff12b1ba02906c1bfc0 (patch)
treeffd37da1588ed8b9460166df4703c790c5c11f3e
parentb06f11fd632f146a204b4ef1357a8c099bade072 (diff)
downloadchat-75a2ce062a0b36d13153cff12b1ba02906c1bfc0.tar.gz
chat-75a2ce062a0b36d13153cff12b1ba02906c1bfc0.tar.bz2
chat-75a2ce062a0b36d13153cff12b1ba02906c1bfc0.zip
PLT-564 fixing error bar
-rw-r--r--web/react/stores/socket_store.jsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx
index 29aa32a08..c8e3c8bdd 100644
--- a/web/react/stores/socket_store.jsx
+++ b/web/react/stores/socket_store.jsx
@@ -59,13 +59,14 @@ class SocketStoreClass extends EventEmitter {
conn.onopen = () => {
if (this.failCount > 0) {
console.log('websocket re-established connection'); //eslint-disable-line no-console
+
+ if (ErrorStore.getLastError()) {
+ ErrorStore.storeLastError(null);
+ ErrorStore.emitChange();
+ }
}
this.failCount = 0;
- if (ErrorStore.getLastError()) {
- ErrorStore.storeLastError(null);
- ErrorStore.emitChange();
- }
};
conn.onclose = () => {