From 8ec9830b57a93ba29869e5773f343106e10529c2 Mon Sep 17 00:00:00 2001 From: Carlos Alvarez Date: Tue, 18 Aug 2020 23:16:44 -0700 Subject: [PATCH] Don't retry request to check online status And update online status in Ion when request succeeds --- src/lib/Network.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Network.js b/src/lib/Network.js index e35abfc989c46..dfe1d52334fc8 100644 --- a/src/lib/Network.js +++ b/src/lib/Network.js @@ -233,7 +233,8 @@ function processNetworkRequestQueue() { // 2. Getting a 200 response back from the API (happens right below) // Make a simple request every second to see if the API is online again - request('Get', null) + request('Get', {doNotRetry: true}) + .then(() => Ion.merge(IONKEYS.NETWORK, {isOffline: false})) .then(() => isAppOffline = false); return; }