fix by @treeaaa
This commit is contained in:
parent
2963e8a757
commit
3c11c60126
1 changed files with 7 additions and 6 deletions
|
|
@ -638,6 +638,7 @@ class AudioProcessor:
|
|||
async def cleanup(self):
|
||||
"""Clean up resources when processing is complete."""
|
||||
logger.info("Starting cleanup of AudioProcessor resources.")
|
||||
self.is_stopping = True
|
||||
for task in self.all_tasks_for_cleanup:
|
||||
if task and not task.done():
|
||||
task.cancel()
|
||||
|
|
|
|||
Loading…
Reference in a new issue