mirror of https://github.com/M66B/NetGuard.git
Removed yields
This commit is contained in:
parent
06bd30e676
commit
190a73aa49
|
@ -322,13 +322,6 @@ public class SinkholeService extends VpnService {
|
|||
public void onReceive(Context context, Intent intent) {
|
||||
Log.i(TAG, "Received " + intent);
|
||||
Util.logExtras(intent);
|
||||
|
||||
// Yield system
|
||||
try {
|
||||
Thread.sleep(2500);
|
||||
} catch (InterruptedException ignored) {
|
||||
}
|
||||
|
||||
reload(null, SinkholeService.this);
|
||||
}
|
||||
};
|
||||
|
@ -343,12 +336,6 @@ public class SinkholeService extends VpnService {
|
|||
PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
|
||||
Log.i(TAG, "device idle=" + pm.isDeviceIdleMode());
|
||||
|
||||
// Yield system
|
||||
try {
|
||||
Thread.sleep(2500);
|
||||
} catch (InterruptedException ignored) {
|
||||
}
|
||||
|
||||
// Reload rules when comming from idle mode
|
||||
if (!pm.isDeviceIdleMode())
|
||||
reload(null, SinkholeService.this);
|
||||
|
|
Loading…
Reference in New Issue