mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
feat: skip cancel monitor task
This commit is contained in:
parent
ca7553b607
commit
91d33083da
1 changed files with 10 additions and 9 deletions
|
|
@ -438,6 +438,7 @@ class TTSProvider(TTSProviderBase):
|
|||
finally:
|
||||
self.ws = None
|
||||
|
||||
if not skip_cancel_monitor_task:
|
||||
if self._monitor_task and not self._monitor_task.done():
|
||||
try:
|
||||
await self._monitor_task
|
||||
|
|
|
|||
Loading…
Reference in a new issue