mirror of https://github.com/M66B/FairEmail.git
Fixed wakelock
This commit is contained in:
parent
f26b915ece
commit
4c3d158d82
|
@ -860,7 +860,6 @@ public class ServiceSynchronize extends LifecycleService {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
wl.acquire();
|
|
||||||
Log.i(Helper.TAG, folder.name + " start idle");
|
Log.i(Helper.TAG, folder.name + " start idle");
|
||||||
while (state.running) {
|
while (state.running) {
|
||||||
Log.i(Helper.TAG, folder.name + " do idle");
|
Log.i(Helper.TAG, folder.name + " do idle");
|
||||||
|
@ -878,7 +877,6 @@ public class ServiceSynchronize extends LifecycleService {
|
||||||
yieldWakelock();
|
yieldWakelock();
|
||||||
} finally {
|
} finally {
|
||||||
Log.i(Helper.TAG, folder.name + " end idle");
|
Log.i(Helper.TAG, folder.name + " end idle");
|
||||||
wl.release();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, "idler." + folder.id);
|
}, "idler." + folder.id);
|
||||||
|
|
Loading…
Reference in New Issue