mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-30 12:30:16 +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;
|
||||
|
||||
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.');
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user