From 7865e5b570bf9cf92291f3bc201a1ea4ac6da978 Mon Sep 17 00:00:00 2001 From: Bojan Stefanovic <5675392+bojanstef@users.noreply.github.com> Date: Fri, 26 Jan 2024 13:22:23 -0500 Subject: [PATCH] Removed erroneous calls to dispatch group leave --- Sources/NextLevelSessionExporter.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Sources/NextLevelSessionExporter.swift b/Sources/NextLevelSessionExporter.swift index 768e5c2..9d3ef2a 100644 --- a/Sources/NextLevelSessionExporter.swift +++ b/Sources/NextLevelSessionExporter.swift @@ -287,9 +287,7 @@ extension NextLevelSessionExporter { dispatchGroup.leave() } }) - } else { - dispatchGroup.leave() - } + } if let audioInput = self._audioInput, let audioOutput = self._audioOutput { @@ -299,9 +297,7 @@ extension NextLevelSessionExporter { dispatchGroup.leave() } }) - } else { - dispatchGroup.leave() - } + } dispatchGroup.notify(queue: .global()) { DispatchQueue.main.async {