Refactor: Simplify resource cleanup
This commit is contained in:
parent
b0cab253d0
commit
603c5845f4
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user