Small improvements

This commit is contained in:
M66B 2022-04-18 10:56:35 +02:00
parent 8879e19b7e
commit c5be2dc2af
1 changed files with 4 additions and 1 deletions

View File

@ -2314,12 +2314,14 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
EntityLog.log(this, EntityLog.Type.Account, account,
account.name + " closing");
// Cancel purge
getMainHandler().removeCallbacks(purge);
// Stop watching operations
Log.i(account.name + " stop watching operations");
final TwoStateOwner _owner = cowner.value;
if (_owner != null)
if (_owner != null) {
cowner.value = null;
getMainHandler().post(new RunnableEx("observe#stop") {
@Override
public void delegate() {
@ -2330,6 +2332,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
}
}
});
}
// Stop executing operations
Log.i(account.name + " stop executing operations");