Skip to content

Commit

Permalink
fix: Xcode 14.2 compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Jan 10, 2024
1 parent 4f9b62c commit dfdd904
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Sources/LiveKit/Core/Engine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ extension Engine {

publisher.onOffer = { [weak self] offer in
guard let self else { return }
log("Publisher onOffer \(offer.sdp)")
try await signalClient.send(offer: offer)
self.log("Publisher onOffer \(offer.sdp)")
try await self.signalClient.send(offer: offer)
}

// data over pub channel for backwards compatibility
Expand Down
6 changes: 3 additions & 3 deletions Sources/LiveKit/Core/SignalClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ class SignalClient: MulticastDelegate<SignalClientDelegate> {
do {
// Prepare request data...
guard let data = try? request.serializedData() else {
log("Could not serialize request data", .error)
self.log("Could not serialize request data", .error)
throw LiveKitError(.failedToConvertData, message: "Failed to convert data")
}

let webSocket = try requireWebSocket()
let webSocket = try self.requireWebSocket()
try await webSocket.send(data: data)

} catch {
log("Failed to send queued request \(request) with error: \(error)", .error)
self.log("Failed to send queued request \(request) with error: \(error)", .error)
}
})

Expand Down
2 changes: 1 addition & 1 deletion Sources/LiveKit/Core/Transport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Transport: MulticastDelegate<TransportDelegate> {
do {
try await self._pc.add(iceCandidate)
} catch {
log("Failed to add(iceCandidate:) with error: \(error)", .error)
self.log("Failed to add(iceCandidate:) with error: \(error)", .error)
}
})

Expand Down
2 changes: 1 addition & 1 deletion Sources/LiveKit/Track/AudioManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public class AudioManager: Loggable {
_state.onDidMutate = { [weak self] newState, oldState in
guard let self else { return }

log("\(oldState) -> \(newState)")
self.log("\(oldState) -> \(newState)")

#if os(iOS)
let configureFunc = newState.customConfigureFunc ?? defaultConfigureAudioSessionFunc
Expand Down
2 changes: 1 addition & 1 deletion Sources/LiveKit/Track/Track.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public class Track: NSObject, Loggable {
guard let self else { return }

if oldState.dimensions != newState.dimensions {
log("Track.dimensions \(String(describing: oldState.dimensions)) -> \(String(describing: newState.dimensions))")
self.log("Track.dimensions \(String(describing: oldState.dimensions)) -> \(String(describing: newState.dimensions))")
}

self.delegates.notify {
Expand Down

0 comments on commit dfdd904

Please sign in to comment.