Show VPN start exceptions

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

View File

@ -320,6 +320,8 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
} catch (Throwable ex) {
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
showErrorNotification(ex.toString());
if (!(ex instanceof IllegalStateException)) {
// Disable firewall
prefs.edit().putBoolean("enabled", false).apply();
@ -427,6 +429,7 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
startNative(vpn, listAllowed);
}
removeWarningNotifications();
updateEnforcingNotification(listAllowed.size(), listRule.size());
}