Fix temporary file deletion timing
This commit is contained in:
parent
5f1662ab30
commit
0f70d9fc05
@ -395,8 +395,6 @@ class WhisperState: NSObject, ObservableObject, AVAudioRecorderDelegate {
|
||||
let fileName = "\(UUID().uuidString).wav"
|
||||
let permanentURL = recordingsDirectory.appendingPathComponent(fileName)
|
||||
try FileManager.default.copyItem(at: tempURL, to: permanentURL)
|
||||
|
||||
try? FileManager.default.removeItem(at: tempURL)
|
||||
return permanentURL
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user