From bfdbefb78a0eda07954970a7462d0bd895b3a239 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Mon, 16 Jan 2017 12:12:11 -0800 Subject: [PATCH] fix(offline-notif) Properly check and clear offline notification --- .../notifications/lib/items/offline-notification.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal_packages/notifications/lib/items/offline-notification.jsx b/internal_packages/notifications/lib/items/offline-notification.jsx index f95e3b7b7..56654a1fd 100644 --- a/internal_packages/notifications/lib/items/offline-notification.jsx +++ b/internal_packages/notifications/lib/items/offline-notification.jsx @@ -53,8 +53,8 @@ export default class OfflineNotification extends React.Component { // foreground to avoid the battery hit. if (!this.state.connected && !document.body.classList.contains('is-blurred')) { this._updateInterval = setInterval(() => { - this.setState(this.getStateFromStores()); - }, 1000); + Actions.retryDeltaConnection(); + }, 5000); } }