From 8d875a6307dc7e84a643ec8089b9de47989b3b7c Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Mon, 13 Feb 2017 12:23:22 -0800 Subject: [PATCH] fix(offline-notif) Try to connect immediately upon window focus Summary: see title Test Plan: manual Reviewers: mark Reviewed By: mark Differential Revision: https://phab.nylas.com/D3901 --- .../notifications/lib/items/offline-notification.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/internal_packages/notifications/lib/items/offline-notification.jsx b/internal_packages/notifications/lib/items/offline-notification.jsx index 8d8b16103..e8e91223e 100644 --- a/internal_packages/notifications/lib/items/offline-notification.jsx +++ b/internal_packages/notifications/lib/items/offline-notification.jsx @@ -101,6 +101,7 @@ export default class OfflineNotification extends React.Component { // only attempt to retry if the window is in the foreground to avoid // the battery hit. if (!this.state.connected && !document.body.classList.contains('is-blurred')) { + Actions.retryDeltaConnection(); this._updateInterval = setInterval(() => { Actions.retryDeltaConnection(); }, CHECK_STATUS_INTERVAL);