Skip to content

Commit

Permalink
Removed erroneous calls to dispatch group leave
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanstef committed Jan 26, 2024
1 parent 7ae16dc commit 7865e5b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Sources/NextLevelSessionExporter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,7 @@ extension NextLevelSessionExporter {
dispatchGroup.leave()
}
})
} else {
dispatchGroup.leave()
}
}

if let audioInput = self._audioInput,
let audioOutput = self._audioOutput {
Expand All @@ -299,9 +297,7 @@ extension NextLevelSessionExporter {
dispatchGroup.leave()
}
})
} else {
dispatchGroup.leave()
}
}

dispatchGroup.notify(queue: .global()) {
DispatchQueue.main.async {
Expand Down

0 comments on commit 7865e5b

Please sign in to comment.