mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-12 09:58:10 +02:00
Attempt bugfix for error when on VPN (#1120)
This commit is contained in:
@@ -1770,7 +1770,9 @@ Future<void> bgUpdateCheck(String taskId, Map<String, dynamic>? params) async {
|
|||||||
int maxRetryWaitSeconds = 5;
|
int maxRetryWaitSeconds = 5;
|
||||||
|
|
||||||
var netResult = await (Connectivity().checkConnectivity());
|
var netResult = await (Connectivity().checkConnectivity());
|
||||||
if (netResult.contains(ConnectivityResult.none)) {
|
if (netResult.contains(ConnectivityResult.none) ||
|
||||||
|
netResult.isEmpty ||
|
||||||
|
(netResult.contains(ConnectivityResult.vpn) && netResult.length == 1)) {
|
||||||
logs.add('BG update task: No network.');
|
logs.add('BG update task: No network.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user