Skip to content

Commit 6d027f7

Browse files
committed
FIX: self
1 parent 0c7865e commit 6d027f7

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

macOS/APIExample/Examples/Advanced/CustomVideoSourceMediaIO/CustomVideoSourceMediaIO.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class CustomVideoSourceMediaIO: BaseViewController {
235235
isProcessing = true
236236
agoraKit.leaveChannel { [unowned self] (stats:AgoraChannelStats) in
237237
LogUtils.log(message: "Left channel", level: .info)
238-
isProcessing = false
238+
self.isProcessing = false
239239
self.videos[0].uid = nil
240240
self.isJoined = false
241241
self.videos.forEach {

macOS/APIExample/Examples/Advanced/CustomVideoSourcePush/CustomVideoSourcePush.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class CustomVideoSourcePush: BaseViewController {
219219
isProcessing = true
220220
let result = agoraKit.joinChannel(byToken: KeyCenter.Token, channelId: channelField.stringValue, info: nil, uid: 0) {
221221
[unowned self] (channel, uid, elapsed) -> Void in
222-
isProcessing = false
222+
self.isProcessing = false
223223
self.isJoined = true
224224
LogUtils.log(message: "Join \(channel) with uid \(uid) elapsed \(elapsed)ms", level: .info)
225225
}

macOS/APIExample/Examples/Advanced/RawMediaData/RawMediaData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class RawMediaData: BaseViewController {
249249
// the token has to match the ones used for channel join
250250
isProcessing = true
251251
let result = agoraKit.joinChannel(byToken: KeyCenter.Token, channelId: channelField.stringValue, info: nil, uid: 0) {[unowned self] (channel, uid, elapsed) -> Void in
252-
isProcessing = false
252+
self.isProcessing = false
253253
self.isJoined = true
254254
localVideo.uid = uid
255255
LogUtils.log(message: "Join \(channel) with uid \(uid) elapsed \(elapsed)ms", level: .info)

macOS/APIExample/Examples/Advanced/StreamEncryption/StreamEncryption.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class StreamEncryption: BaseViewController {
270270
LogUtils.log(message: "Join \(channel) with uid \(uid) elapsed \(elapsed)ms", level: .info)
271271
}
272272
if result != 0 {
273-
self.isProcessing = false
273+
isProcessing = false
274274
// Usually happens with invalid parameters
275275
// Error code description can be found at:
276276
// en: https://docs.agora.io/en/Voice/API%20Reference/oc/Constants/AgoraErrorCode.html

0 commit comments

Comments
 (0)