Skip to content

Commit e32784d

Browse files
committed
more feedback
1 parent 31e7b70 commit e32784d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Shared/Services/Sync/SyncService.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ public final class SyncService: SyncServiceProtocol, BPLogger {
265265
) async throws {
266266
Self.logger.trace("Fetching list of contents")
267267

268+
/// Same gate as `syncLibraryContents()`: don't reconcile while a logout teardown
269+
/// is still clearing the queue, in case a fast re-login routed here before the
270+
/// `hasScheduledLibraryContents` flag was reset.
271+
await teardownTask?.value
272+
268273
let response = try await fetchContents(at: relativePath)
269274

270275
try await processContentsResponse(response, parentFolder: relativePath, canDelete: true)

0 commit comments

Comments
 (0)