diff --git a/demos/supabase-todolist/pubspec.lock b/demos/supabase-todolist/pubspec.lock index 6781d83b..9946071a 100644 --- a/demos/supabase-todolist/pubspec.lock +++ b/demos/supabase-todolist/pubspec.lock @@ -429,7 +429,7 @@ packages: path: "../../packages/powersync_attachments_helper" relative: true source: path - version: "0.3.1" + version: "0.3.2" realtime_client: dependency: transitive description: diff --git a/packages/powersync_attachments_helper/CHANGELOG.md b/packages/powersync_attachments_helper/CHANGELOG.md index 1028766a..c1f4bde4 100644 --- a/packages/powersync_attachments_helper/CHANGELOG.md +++ b/packages/powersync_attachments_helper/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.2 + +- Fix sync not resetting after an error is thrown + ## 0.3.1 - Add periodic syncing and deleting of attachments diff --git a/packages/powersync_attachments_helper/lib/src/syncing_service.dart b/packages/powersync_attachments_helper/lib/src/syncing_service.dart index ccb91628..93c2300c 100644 --- a/packages/powersync_attachments_helper/lib/src/syncing_service.dart +++ b/packages/powersync_attachments_helper/lib/src/syncing_service.dart @@ -107,10 +107,10 @@ class SyncingService { /// Handle downloading, uploading or deleting of attachments Future handleSync(Iterable attachments) async { - if (isProcessing == true) { - return; - } - + if (isProcessing == true) { + return; + } + try { isProcessing = true; diff --git a/packages/powersync_attachments_helper/pubspec.yaml b/packages/powersync_attachments_helper/pubspec.yaml index bb599186..0f00f8cc 100644 --- a/packages/powersync_attachments_helper/pubspec.yaml +++ b/packages/powersync_attachments_helper/pubspec.yaml @@ -1,6 +1,6 @@ name: powersync_attachments_helper description: A helper library for handling attachments when using PowerSync. -version: 0.3.1 +version: 0.3.2 repository: https://github.com/powersync-ja/powersync.dart homepage: https://www.powersync.com/ environment: