mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-29 18:23:59 +08:00
update:将垃圾回收放置ws关闭处,避免频繁操作
This commit is contained in:
@@ -97,7 +97,6 @@ def opus_to_wav(conn, opus_data):
|
||||
if decoder is not None:
|
||||
try:
|
||||
del decoder
|
||||
gc.collect()
|
||||
except Exception as e:
|
||||
conn.logger.bind(tag=TAG).debug(f"释放decoder资源时出错: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user