forked from mattermost/mattermost-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path@react-native-community+netinfo+7.1.9.patch
33 lines (33 loc) · 1.49 KB
/
@react-native-community+netinfo+7.1.9.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/node_modules/@react-native-community/netinfo/src/internal/internetReachability.ts b/node_modules/@react-native-community/netinfo/src/internal/internetReachability.ts
index ed49fb7..23dc6ae 100644
--- a/node_modules/@react-native-community/netinfo/src/internal/internetReachability.ts
+++ b/node_modules/@react-native-community/netinfo/src/internal/internetReachability.ts
@@ -109,20 +109,20 @@ export default class InternetReachability {
const nextTimeoutInterval = this._isInternetReachable
? this._configuration.reachabilityLongTimeout
: this._configuration.reachabilityShortTimeout;
- this._currentTimeoutHandle = setTimeout(
- this._checkInternetReachability,
- nextTimeoutInterval,
- );
+ // this._currentTimeoutHandle = setTimeout(
+ // this._checkInternetReachability,
+ // nextTimeoutInterval,
+ // );
},
)
.catch(
(error: Error | 'timedout' | 'canceled'): void => {
if (error !== 'canceled') {
this._setIsInternetReachable(false);
- this._currentTimeoutHandle = setTimeout(
- this._checkInternetReachability,
- this._configuration.reachabilityShortTimeout,
- );
+ // this._currentTimeoutHandle = setTimeout(
+ // this._checkInternetReachability,
+ // this._configuration.reachabilityShortTimeout,
+ // );
}
},
)