mirror of
https://github.com/M66B/NetGuard.git
synced 2025-01-01 12:54:07 +00:00
Check if reload succeeded
This commit is contained in:
parent
a8f16d2d29
commit
c0c5b2b94f
1 changed files with 3 additions and 0 deletions
|
@ -421,6 +421,9 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
|
|||
stopNative(prev, false);
|
||||
stopVPN(prev);
|
||||
}
|
||||
if (vpn == null)
|
||||
throw new IllegalStateException("VPN start failed");
|
||||
|
||||
startNative(vpn, listAllowed);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue