mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
mitigate memory leak (#5152)
This commit is contained in:
parent
e211152f93
commit
27f136b802
@ -57,6 +57,9 @@ class Session:
|
||||
self.websocket = None
|
||||
finally:
|
||||
self.agent_session.close()
|
||||
del (
|
||||
self.agent_session
|
||||
) # FIXME: this should not be necessary but it mitigates a memory leak
|
||||
|
||||
async def loop_recv(self):
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user