mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Avoid voice input model closing race condition
This commit is contained in:
parent
434a751d63
commit
6329878e8e
@ -64,7 +64,7 @@ class WhisperGGML(
|
||||
}
|
||||
}
|
||||
|
||||
fun close() {
|
||||
suspend fun close() = withContext(inferenceContext) {
|
||||
if(handle != 0L) {
|
||||
closeNative(handle)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user