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:
parent
e92b51643b
commit
a780534082
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue