mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 09:17:58 +00:00
Sync stop operations (2)
This commit is contained in:
parent
c459d3cf36
commit
9558290e56
1 changed files with 17 additions and 19 deletions
|
@ -2321,14 +2321,13 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
|
||||
// Stop watching operations
|
||||
Log.i(account.name + " stop watching operations");
|
||||
final TwoStateOwner _owner = cowner.value;
|
||||
if (_owner != null) {
|
||||
final CountDownLatch latch = new CountDownLatch(1);
|
||||
|
||||
getMainHandler().post(new RunnableEx("observe#stop") {
|
||||
@Override
|
||||
public void delegate() {
|
||||
try {
|
||||
_owner.destroy();
|
||||
cowner.value.destroy();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
} finally {
|
||||
|
@ -2342,7 +2341,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
} catch (InterruptedException ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
}
|
||||
|
||||
// Stop executing operations
|
||||
Log.i(account.name + " stop executing operations");
|
||||
|
|
Loading…
Reference in a new issue