Check if reload succeeded

This commit is contained in:
M66B 2016-02-11 15:01:23 +01:00
parent a8f16d2d29
commit c0c5b2b94f
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}