diff --git a/src/Workspaces/Core/Desktop/Workspace/SQLite/SQLitePersistentStorage_WriteBatching.cs b/src/Workspaces/Core/Desktop/Workspace/SQLite/SQLitePersistentStorage_WriteBatching.cs index 867448b9904e99737bcd2b3825d1ec34cc3bb0bf..578a1784cba17289322fd51cfd9cacb46f902473 100644 --- a/src/Workspaces/Core/Desktop/Workspace/SQLite/SQLitePersistentStorage_WriteBatching.cs +++ b/src/Workspaces/Core/Desktop/Workspace/SQLite/SQLitePersistentStorage_WriteBatching.cs @@ -112,9 +112,13 @@ async Task GetWriteTaskAsync() // We're currently under a lock, so tell the continuation to run // *asynchronously* so that the TPL does not try to execute it inline // with this thread. + // + // Note: this flushing is not cancellable. We've already removed the + // writes from the write queue. If we were not to write them out we + // would be losing data. var nextTask = existingWriteTask.ContinueWith( _ => ProcessWriteQueue(connection, writesToProcess), - cancellationToken, + CancellationToken.None, TaskContinuationOptions.RunContinuationsAsynchronously, TaskScheduler.Default);