Skip to content

Commit bf15a2d

Browse files
committed
fix: add explicit self. to options in closure for strict concurrency (CRITICAL FIX)
1 parent adf6762 commit bf15a2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ElevenLabs/Conversation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,10 @@ public final class Conversation: ObservableObject, RoomDelegate {
445445
audioManager.onMutedSpeechActivity = { [weak self] _, event in
446446
Task { @MainActor [weak self] in
447447
guard let self else { return }
448-
if let handler = options.audioConfiguration?.onSpeechActivity {
448+
if let handler = self.options.audioConfiguration?.onSpeechActivity {
449449
handler(event)
450450
}
451-
if let handler = options.onSpeechActivity {
451+
if let handler = self.options.onSpeechActivity {
452452
handler(event)
453453
}
454454
}

0 commit comments

Comments
 (0)