Removed yields

This commit is contained in:
M66B 2015-11-23 12:17:36 +01:00
parent 06bd30e676
commit 190a73aa49
1 changed files with 0 additions and 13 deletions

View File

@ -322,13 +322,6 @@ public class SinkholeService extends VpnService {
public void onReceive(Context context, Intent intent) { public void onReceive(Context context, Intent intent) {
Log.i(TAG, "Received " + intent); Log.i(TAG, "Received " + intent);
Util.logExtras(intent); Util.logExtras(intent);
// Yield system
try {
Thread.sleep(2500);
} catch (InterruptedException ignored) {
}
reload(null, SinkholeService.this); reload(null, SinkholeService.this);
} }
}; };
@ -343,12 +336,6 @@ public class SinkholeService extends VpnService {
PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
Log.i(TAG, "device idle=" + pm.isDeviceIdleMode()); Log.i(TAG, "device idle=" + pm.isDeviceIdleMode());
// Yield system
try {
Thread.sleep(2500);
} catch (InterruptedException ignored) {
}
// Reload rules when comming from idle mode // Reload rules when comming from idle mode
if (!pm.isDeviceIdleMode()) if (!pm.isDeviceIdleMode())
reload(null, SinkholeService.this); reload(null, SinkholeService.this);