Skip to content

Commit 8eb58ca

Browse files
author
MaKuEarth
committed
Fix to avoid calling start twice.
1 parent 94ac78d commit 8eb58ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Source/SignalTracking/Units/InputSignalTracker.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ final class InputSignalTracker: SignalTracker {
6666
}
6767
}
6868

69-
captureSession.startRunning()
70-
audioEngine?.prepare()
7169
try audioEngine?.start()
70+
captureSession.startRunning()
71+
guard captureSession.isRunning == true else {
72+
throw InputSignalTrackerError.inputNodeMissing
73+
}
7274
}
7375

7476
func stop() {

0 commit comments

Comments
 (0)