|
@@ -116,10 +116,10 @@ class FileMagicService {
|
|
|
// update the state of the selected file. Same file in other collection
|
|
|
// should be eventually synced after remote sync has completed
|
|
|
await _filesDB.insertMultiple(files);
|
|
|
- RemoteSyncService.instance.sync(silently: true);
|
|
|
+ RemoteSyncService.instance.sync(silently: true).ignore();
|
|
|
} on DioError catch (e) {
|
|
|
if (e.response != null && e.response!.statusCode == 409) {
|
|
|
- RemoteSyncService.instance.sync(silently: true);
|
|
|
+ RemoteSyncService.instance.sync(silently: true).ignore();
|
|
|
}
|
|
|
rethrow;
|
|
|
} catch (e, s) {
|
|
@@ -184,10 +184,10 @@ class FileMagicService {
|
|
|
|
|
|
// update the state of the selected file. Same file in other collection
|
|
|
// should be eventually synced after remote sync has completed
|
|
|
- RemoteSyncService.instance.sync(silently: true);
|
|
|
+ RemoteSyncService.instance.sync(silently: true).ignore();
|
|
|
} on DioError catch (e) {
|
|
|
if (e.response != null && e.response!.statusCode == 409) {
|
|
|
- RemoteSyncService.instance.sync(silently: true);
|
|
|
+ RemoteSyncService.instance.sync(silently: true).ignore();
|
|
|
}
|
|
|
rethrow;
|
|
|
} catch (e, s) {
|