Skip to content

Commit

Permalink
chore: run the existing recheckNetworkConnection check function
Browse files Browse the repository at this point in the history
  • Loading branch information
adhorodyski committed Jun 6, 2024
1 parent ba755e6 commit bd22f97
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/libs/NetworkConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,10 @@ function subscribeToBackendAndInternetReachability(): () => void {
const intervalID = setInterval(() => {
// Offline status also implies backend unreachability
if (isOffline) {
// Periodically refresh internet reachability check
// Periodically recheck the network connection
// More info: https://github.com/Expensify/App/issues/42988
NetInfo.refresh().then(() => {
Log.info(`[NetworkStatus] Refreshing NetInfo's network status with "isOffline" set to "true" to double-check internet reachability.`);
});
recheckNetworkConnection();
Log.info(`[NetworkStatus] Rechecking the network connection with "isOffline" set to "true" to double-check internet reachability.`);
return;
}
// Using the API url ensures reachability is tested over internet
Expand Down

0 comments on commit bd22f97

Please sign in to comment.