fix: Reset on startRecording to avoid leak

This commit is contained in:
Myzel394 2023-08-17 11:33:29 +02:00
parent 3a98762aa9
commit bf405aa76d
No known key found for this signature in database
GPG Key ID: 50098FCA22080F0F

View File

@ -86,6 +86,8 @@ class AudioRecorderModel: ViewModel() {
}
fun startRecording(context: Context) {
reset()
runCatching {
context.unbindService(connection)
}