Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

logging

CJ Pais07637ea932bc
diff --git a/src-tauri/src/managers/transcription.rs b/src-tauri/src/managers/transcription.rs
index 61f95fe3..c605419f 100644
--- a/src-tauri/src/managers/transcription.rs
+++ b/src-tauri/src/managers/transcription.rs
@@ -183,7 +183,10 @@ impl Drop for LoadingGuard {
// a panic inside Drop calls abort().
let mut is_loading = match self.is_loading.lock() {
Ok(g) => g,
- Err(e) => e.into_inner(),
+ Err(e) => {
+ warn!("Recovered poisoned is_loading mutex during LoadingGuard drop — a panic occurred earlier this session");
+ e.into_inner()
+ }
};
*is_loading = false;
self.loading_condvar.notify_all();
@@ -1949,7 +1952,10 @@ impl Drop for TranscriptionManager {
// poisoned — a panic inside Drop calls abort().
let mut guard = match self.watcher_handle.lock() {
Ok(g) => g,
- Err(e) => e.into_inner(),
+ Err(e) => {
+ warn!("Recovered poisoned watcher_handle mutex during TranscriptionManager drop — a panic occurred earlier this session");
+ e.into_inner()
+ }
};
if let Some(handle) = guard.take() {
if let Err(e) = handle.join() {