summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-12-08 08:21:00 -0500
committerChristopher Speller <crspeller@gmail.com>2015-12-08 08:21:00 -0500
commit8cd3e225c995b4e6752262eec36aa5145f28cdea (patch)
treef6715389c81126315caa21b1835162d96999975b
parentcf25825b0426babf024b892843e3b0ffdf7560ac (diff)
parent75a2ce062a0b36d13153cff12b1ba02906c1bfc0 (diff)
downloadchat-8cd3e225c995b4e6752262eec36aa5145f28cdea.tar.gz
chat-8cd3e225c995b4e6752262eec36aa5145f28cdea.tar.bz2
chat-8cd3e225c995b4e6752262eec36aa5145f28cdea.zip
Merge pull request #1647 from mattermost/PLT-564
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 = () => {