diff options
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 |
commit | 4345dce3b8c623a79b7d5c14bf67bc1a3c1633ed (patch) | |
tree | f49a0bfb1455ed6b38eac82a078756b1ef038a63 /web/react/stores/socket_store.jsx | |
parent | fe802fb9c4afdf27a2fb56eb472f48eb921b4de0 (diff) | |
download | chat-4345dce3b8c623a79b7d5c14bf67bc1a3c1633ed.tar.gz chat-4345dce3b8c623a79b7d5c14bf67bc1a3c1633ed.tar.bz2 chat-4345dce3b8c623a79b7d5c14bf67bc1a3c1633ed.zip |
PLT-500 fixing connection msg issues
Diffstat (limited to 'web/react/stores/socket_store.jsx')
-rw-r--r-- | web/react/stores/socket_store.jsx | 6 |
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 = () => { |