Better handle fail over problems

This commit is contained in:
M66B 2016-01-11 18:33:44 +01:00
parent 61eb1652e5
commit 81b3148ddf
1 changed files with 6 additions and 1 deletions

View File

@ -671,7 +671,12 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
builder.setBlocking(true);
// Start VPN service
return builder.establish();
try {
return builder.establish();
} catch (Throwable ex) {
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
return null;
}
}
private void stopVPN(ParcelFileDescriptor pfd) {