From c090646c3baf34ba24d3cb7549ba4ae722b04579 Mon Sep 17 00:00:00 2001 From: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com> Date: Tue, 6 Feb 2024 22:52:35 +0900 Subject: [PATCH] fix Xcode 14.2 compiling --- Sources/LiveKit/Core/Engine+TransportDelegate.swift | 2 +- Sources/LiveKit/Core/Engine.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/LiveKit/Core/Engine+TransportDelegate.swift b/Sources/LiveKit/Core/Engine+TransportDelegate.swift index 5fcfb84cf..8c0df3671 100644 --- a/Sources/LiveKit/Core/Engine+TransportDelegate.swift +++ b/Sources/LiveKit/Core/Engine+TransportDelegate.swift @@ -66,7 +66,7 @@ extension Engine: TransportDelegate { removeWhen: { state, _ in state.connectionState == .disconnected }) { [weak self] in guard let self else { return } - _delegate.notifyAsync { await $0.engine(self, didAddTrack: track, rtpReceiver: rtpReceiver, stream: streams.first!) } + self._delegate.notifyAsync { await $0.engine(self, didAddTrack: track, rtpReceiver: rtpReceiver, stream: streams.first!) } } } } diff --git a/Sources/LiveKit/Core/Engine.swift b/Sources/LiveKit/Core/Engine.swift index 4fa4842c6..1322ec55f 100644 --- a/Sources/LiveKit/Core/Engine.swift +++ b/Sources/LiveKit/Core/Engine.swift @@ -70,8 +70,8 @@ class Engine: Loggable { lazy var subscriberDataChannel: DataChannelPairActor = .init(onDataPacket: { [weak self] dataPacket in guard let self else { return } switch dataPacket.value { - case let .speaker(update): _delegate.notifyAsync { await $0.engine(self, didUpdateSpeakers: update.speakers) } - case let .user(userPacket): _delegate.notifyAsync { await $0.engine(self, didReceiveUserPacket: userPacket) } + case let .speaker(update): self._delegate.notifyAsync { await $0.engine(self, didUpdateSpeakers: update.speakers) } + case let .user(userPacket): self._delegate.notifyAsync { await $0.engine(self, didReceiveUserPacket: userPacket) } default: return } }) @@ -103,7 +103,7 @@ class Engine: Loggable { self.log("connectionState: \(oldState.connectionState) -> \(newState.connectionState), reconnectMode: \(String(describing: newState.isReconnectingWithMode))") } - _delegate.notifyAsync { await $0.engine(self, didMutateState: newState, oldState: oldState) } + self._delegate.notifyAsync { await $0.engine(self, didMutateState: newState, oldState: oldState) } // execution control self._blockProcessQueue.async { [weak self] in