mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
Two fixes: 1. Use a single open(os.devnull) handle for both stdout and stderr suppression, preventing a file handle leak if the second open() fails. 2. Set server_sock = None after closing it in the try block to prevent the finally block from closing it again (causing an OSError). Closes #2136 Co-authored-by: dieutx <dangtc94@gmail.com>
30 KiB
30 KiB