Skip to content

Commit 66a5a48

Browse files
committed
workaround to fix crash on LFAudioCapture.swift
1 parent b3a8d96 commit 66a5a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LFLiveKit/capture/LFAudioCapture.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ - (instancetype)initWithAudioConfiguration:(LFLiveAudioConfiguration *)configura
9898
- (void)dealloc {
9999
[[NSNotificationCenter defaultCenter] removeObserver:self];
100100

101-
dispatch_async(self.taskQueue, ^{
101+
dispatch_sync(self.taskQueue, ^{
102102
if (self.componetInstance) {
103103
self.isRunning = NO;
104104
AudioOutputUnitStop(self.componetInstance);

0 commit comments

Comments
 (0)