fix(offline-notif) Properly check and clear offline notification

This commit is contained in:
Juan Tejada 2017-01-16 12:12:11 -08:00
parent 63c174a90c
commit bfdbefb78a

View file

@ -53,8 +53,8 @@ export default class OfflineNotification extends React.Component {
// foreground to avoid the battery hit. // foreground to avoid the battery hit.
if (!this.state.connected && !document.body.classList.contains('is-blurred')) { if (!this.state.connected && !document.body.classList.contains('is-blurred')) {
this._updateInterval = setInterval(() => { this._updateInterval = setInterval(() => {
this.setState(this.getStateFromStores()); Actions.retryDeltaConnection();
}, 1000); }, 5000);
} }
} }