mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-13 09:01:54 +00:00
preserve the original comment
This commit is contained in:
parent
2d86e97a7e
commit
36e352afa7
1 changed files with 4 additions and 0 deletions
|
|
@ -3308,6 +3308,10 @@ class AIAgent:
|
|||
# (for example Hindsight) that own their own network clients.
|
||||
# Explicitly stop those providers before closing the agent so
|
||||
# their aiohttp sessions do not leak until GC/process exit.
|
||||
# Then close all remaining resources (httpx client,
|
||||
# subprocesses, etc.) so GC doesn't try to clean them up on a
|
||||
# dead asyncio event loop (which produces "Event loop is
|
||||
# closed" errors).
|
||||
if review_agent is not None:
|
||||
try:
|
||||
review_agent.shutdown_memory_provider()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue