fix: websocket edit task

This commit is contained in:
Alex
2026-01-20 09:31:21 -06:00
parent d2e7bc3cfd
commit f26a5da87e

View File

@@ -187,7 +187,7 @@ class BackgroundSyncManager {
_syncWebsocketTask = _handleWsAssetEditReadyV1Batch(batchData);
return _syncWebsocketTask!.whenComplete(() {
_syncWebsocketTask = null;
});
}).future;
}
Future<void> syncLinkedAlbum() {
@@ -227,7 +227,7 @@ CancellableTask<void> _handleWsAssetUploadReadyV1Batch(List<dynamic> batchData)
debugLabel: 'websocket-batch',
);
Cancelable<void> _handleWsAssetEditReadyV1Batch(List<dynamic> batchData) => runInIsolateGentle(
CancellableTask<void> _handleWsAssetEditReadyV1Batch(List<dynamic> batchData) => runInIsolateGentle(
computation: (ref) => ref.read(syncStreamServiceProvider).handleWsAssetEditReadyV1Batch(batchData),
debugLabel: 'websocket-edit',
);