1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-25 01:07:52 +00:00

Yield system 1 sec when interactive state change

This commit is contained in:
M66B 2015-11-02 21:57:37 +01:00
parent b4abb2e727
commit 9c5d534bf8

View file

@ -227,6 +227,13 @@ public class SinkholeService extends VpnService {
public void onReceive(Context context, Intent intent) {
Log.i(TAG, "Received " + intent);
Util.logExtras(TAG, intent);
// Yield system
try {
Thread.sleep(1000);
} catch (InterruptedException ignored) {
}
reload(null, SinkholeService.this);
}
};