loop error message
The loop was companionLibraryChanged → debounce → lastSyncTimestamp = 0 → syncIfNeeded() → bootstrap → syncCompanion() → broadcasts companionLibraryChanged → repeat forever. Removed it from the trigger list — companionLibraryChanged is now purely a UI refresh signal, not a sync trigger.
This commit is contained in:
parent
99e4f3bd3a
commit
36d5151cdb
1 changed files with 0 additions and 1 deletions
|
|
@ -39,7 +39,6 @@ class SyncEngine: ObservableObject {
|
|||
// Companion push events → immediate re-sync so edits/uploads appear instantly
|
||||
NotificationCenter.default.publisher(for: .companionMetadataUpdated)
|
||||
.merge(with: NotificationCenter.default.publisher(for: .companionTrackUploaded))
|
||||
.merge(with: NotificationCenter.default.publisher(for: .companionLibraryChanged))
|
||||
.receive(on: DispatchQueue.main)
|
||||
.debounce(for: .seconds(2), scheduler: DispatchQueue.main)
|
||||
.sink { [weak self] _ in
|
||||
|
|
|
|||
Loading…
Reference in a new issue