Skip to content

Commit 0d94049

Browse files
sozercanclaude
andauthored
fix: restore MainActor context for notification observation task (#86)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7402af0 commit 0d94049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Services/Notification/NotificationService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final class NotificationService {
4242
// MARK: - Observation
4343

4444
private func startObserving() {
45-
self.observationTask = Task { [weak self] in
45+
self.observationTask = Task { @MainActor [weak self] in
4646
guard let self else { return }
4747
var previousTrack: Song?
4848

0 commit comments

Comments
 (0)