diff options
author | Corey Hulen <corey@hulen.com> | 2015-10-07 09:33:59 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-10-07 09:33:59 -0700 |
commit | c189e2bb7681ba01edc9b8c5accd90b94c898d0a (patch) | |
tree | cd77d46753b2308fff79678be3adb727aa238b23 /web/react/stores | |
parent | 3c859aebde2e9e11e8b1eeb4d8bb300400b4ad54 (diff) | |
parent | 8a65601db424d5969448b06ae4e3048a7f34bd94 (diff) | |
download | chat-c189e2bb7681ba01edc9b8c5accd90b94c898d0a.tar.gz chat-c189e2bb7681ba01edc9b8c5accd90b94c898d0a.tar.bz2 chat-c189e2bb7681ba01edc9b8c5accd90b94c898d0a.zip |
Merge pull request #951 from mattermost/PLT-500
PLT-500 fixing connection msg issues
Diffstat (limited to 'web/react/stores')
-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 = () => { |