diff --git a/Sources/LiveKit/Support/Async/AsyncCompleter.swift b/Sources/LiveKit/Support/Async/AsyncCompleter.swift index 5c2770d45..401848504 100644 --- a/Sources/LiveKit/Support/Async/AsyncCompleter.swift +++ b/Sources/LiveKit/Support/Async/AsyncCompleter.swift @@ -186,7 +186,7 @@ final class AsyncCompleter: @unchecked Sendable, Loggable { let timeoutBlock = DispatchWorkItem { [weak self] in guard let self else { return } log("\(label) id: \(entryId) timed out") - _lock.sync { _entries.removeValue(forKey: entryId) }?.timeout() + _lock.sync { self._entries.removeValue(forKey: entryId) }?.timeout() } _lock.sync {