mirror of
https://github.com/immich-app/immich.git
synced 2025-11-18 19:42:34 +09:00
feat: beta background sync (#21243)
* feat: ios background sync # Conflicts: # mobile/ios/Runner/Info.plist * feat: Android sync * add local sync worker and rename stuff * group upload notifications * uncomment onresume beta handling * rename methods --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@ Cancelable<T?> runInIsolateGentle<T>({
|
||||
log.severe("Error in runInIsolateGentle ${debugLabel == null ? '' : ' for $debugLabel'}", error, stack);
|
||||
} finally {
|
||||
try {
|
||||
await LogService.I.flush();
|
||||
await LogService.I.dispose();
|
||||
await logDb.close();
|
||||
await ref.read(driftProvider).close();
|
||||
|
||||
@@ -72,8 +72,8 @@ Cancelable<T?> runInIsolateGentle<T>({
|
||||
}
|
||||
|
||||
ref.dispose();
|
||||
} catch (error) {
|
||||
debugPrint("Error closing resources in isolate: $error");
|
||||
} catch (error, stack) {
|
||||
debugPrint("Error closing resources in isolate: $error, $stack");
|
||||
} finally {
|
||||
ref.dispose();
|
||||
// Delay to ensure all resources are released
|
||||
|
||||
Reference in New Issue
Block a user