diff options
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 |
commit | 75a2ce062a0b36d13153cff12b1ba02906c1bfc0 (patch) | |
tree | ffd37da1588ed8b9460166df4703c790c5c11f3e /web/react | |
parent | b06f11fd632f146a204b4ef1357a8c099bade072 (diff) | |
download | chat-75a2ce062a0b36d13153cff12b1ba02906c1bfc0.tar.gz chat-75a2ce062a0b36d13153cff12b1ba02906c1bfc0.tar.bz2 chat-75a2ce062a0b36d13153cff12b1ba02906c1bfc0.zip |
PLT-564 fixing error bar
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/stores/socket_store.jsx | 9 |
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 = () => { |