Merge pull request #1647 from mattermost/PLT-564

PLT-564 fixing error bar
This commit is contained in:
Christopher Speller
2015-12-08 08:21:00 -05:00
+5 -4
View File
@@ -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 = () => {