forked from Nexus/nexus
pause sync when app is backgrounded
This commit is contained in:
parent
b6ee5aec64
commit
9f0b80072d
4 changed files with 40 additions and 1 deletions
|
|
@ -95,6 +95,11 @@ class ClientController extends AsyncNotifier<int> {
|
|||
}
|
||||
});
|
||||
|
||||
if (!ref.mounted) {
|
||||
GomuksDestroy(handle);
|
||||
return Completer<int>().future;
|
||||
}
|
||||
|
||||
ref.onDispose(() => GomuksDestroy(handle));
|
||||
|
||||
return handle;
|
||||
|
|
|
|||
Loading…
Reference in a new issue