Skip to content

Commit 40f637c

Browse files
pblazejclaude
andauthored
Fix capture warnings (#966)
https://docs.swift.org/compiler/documentation/diagnostics/implicit-strong-capture/ --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fcf948c commit 40f637c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/LiveKit/Agent/Chat/Receive/TranscriptionStreamReceiver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ actor TranscriptionStreamReceiver: MessageReceiver, Loggable {
110110
}
111111
}
112112

113-
continuation.onTermination = { _ in
113+
continuation.onTermination = { [weak self] _ in
114114
Task { [weak self] in
115115
await self?.room.unregisterTextStreamHandler(for: topic)
116116
}

Sources/LiveKit/SwiftUI/LocalMedia.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ open class LocalMedia: ObservableObject, Loggable {
120120
}
121121
}
122122

123-
AudioManager.shared.onDeviceUpdate = { _ in
123+
AudioManager.shared.onDeviceUpdate = { [weak self] _ in
124124
Task { @MainActor [weak self] in
125125
self?.audioDevices = AudioManager.shared.inputDevices
126126
self?.selectedAudioDeviceID = AudioManager.shared.defaultInputDevice.deviceId

0 commit comments

Comments
 (0)