1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-02-25 07:32:46 +00:00

Try to workaround handover fail

https://code.google.com/p/android/issues/detail?id=62410
This commit is contained in:
M66B 2016-02-15 20:24:11 +01:00
parent e92b51643b
commit a780534082

View file

@ -376,6 +376,10 @@ public class SinkholeService extends VpnService implements SharedPreferences.OnS
if (prev != null && vpn == null) { if (prev != null && vpn == null) {
Log.w(TAG, "Handover failed"); Log.w(TAG, "Handover failed");
stopVPN(prev); stopVPN(prev);
try {
Thread.sleep(3000);
} catch (InterruptedException ignored) {
}
prev = null; prev = null;
vpn = startVPN(listAllowed); vpn = startVPN(listAllowed);
if (vpn == null) if (vpn == null)