Refactor: Simplify resource cleanup

This commit is contained in:
Beingpax 2025-05-03 18:21:46 +05:45
parent b0cab253d0
commit 603c5845f4

View File

@ -288,7 +288,6 @@ extension WhisperState {
// MARK: - Resource Management
func cleanupModelResources() async {
recorder.stopRecording()
try? await Task.sleep(nanoseconds: 500_000_000)
await whisperContext?.releaseResources()