From 75a2ce062a0b36d13153cff12b1ba02906c1bfc0 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Mon, 7 Dec 2015 16:03:42 -0800 Subject: [PATCH] PLT-564 fixing error bar --- web/react/stores/socket_store.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx index 29aa32a086..c8e3c8bdd9 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 = () => {