mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-29 13:03:56 +08:00
update:将垃圾回收放置ws关闭处,避免频繁操作
This commit is contained in:
@@ -1127,6 +1127,9 @@ class ConnectionHandler:
|
||||
)
|
||||
self.executor = None
|
||||
|
||||
import gc
|
||||
gc.collect()
|
||||
|
||||
self.logger.bind(tag=TAG).info("连接资源已释放")
|
||||
except Exception as e:
|
||||
self.logger.bind(tag=TAG).error(f"关闭连接时出错: {e}")
|
||||
|
||||
Reference in New Issue
Block a user