|
@@ -64,6 +64,9 @@ Future _init() async {
|
|
}
|
|
}
|
|
|
|
|
|
Future<void> _sync({bool isAppInBackground = false}) async {
|
|
Future<void> _sync({bool isAppInBackground = false}) async {
|
|
|
|
+ if (SyncService.instance.isSyncInProgress()) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
try {
|
|
try {
|
|
await SyncService.instance.sync(isAppInBackground: isAppInBackground);
|
|
await SyncService.instance.sync(isAppInBackground: isAppInBackground);
|
|
} catch (e, s) {
|
|
} catch (e, s) {
|