mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 21:50:28 +02:00
refactor(shutdown): move shutdown logic in one place
This commit is contained in:
@@ -2397,6 +2397,10 @@ class ConversionThread(QThread):
|
||||
self.cancel_requested = True
|
||||
self.should_cancel = True
|
||||
self.waiting_for_user_input = False
|
||||
# Clear voice cache (instance and module-level)
|
||||
self.voice_cache.clear()
|
||||
from abogen.voice_cache import clear_voice_cache
|
||||
clear_voice_cache()
|
||||
# Terminate subprocess if running
|
||||
if self.process:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user