summaryrefslogtreecommitdiffstats
path: root/web/react/stores
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-06 16:17:27 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-06 16:17:27 -0700
commit4345dce3b8c623a79b7d5c14bf67bc1a3c1633ed (patch)
treef49a0bfb1455ed6b38eac82a078756b1ef038a63 /web/react/stores
parentfe802fb9c4afdf27a2fb56eb472f48eb921b4de0 (diff)
downloadchat-4345dce3b8c623a79b7d5c14bf67bc1a3c1633ed.tar.gz
chat-4345dce3b8c623a79b7d5c14bf67bc1a3c1633ed.tar.bz2
chat-4345dce3b8c623a79b7d5c14bf67bc1a3c1633ed.zip
PLT-500 fixing connection msg issues
Diffstat (limited to 'web/react/stores')
-rw-r--r--web/react/stores/socket_store.jsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx
index 1d853f979..9f354965e 100644
--- a/web/react/stores/socket_store.jsx
+++ b/web/react/stores/socket_store.jsx
@@ -50,8 +50,10 @@ class SocketStoreClass extends EventEmitter {
}
this.failCount = 0;
- ErrorStore.storeLastError(null);
- ErrorStore.emitChange();
+ if (ErrorStore.getLastError()) {
+ ErrorStore.storeLastError(null);
+ ErrorStore.emitChange();
+ }
};
conn.onclose = () => {