Skip to content

Commit a0b76d5

Browse files
Fix iOS self in concurrently-executing code (#351)
1 parent 72b3799 commit a0b76d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/Classes/services/AlarmManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class AlarmManager: NSObject {
174174
volumeSettings: config.settings.volumeSettings,
175175
onComplete: config.settings.loopAudio ? { [weak self] in
176176
Task {
177-
await self?.stopAlarm(id: id, cancelNotif: false)
177+
[self] in await self?.stopAlarm(id: id, cancelNotif: false)
178178
}
179179
} : nil)
180180

0 commit comments

Comments
 (0)