mitigate memory leak (#5152)

This commit is contained in:
Robert Brennan 2024-11-20 22:40:30 -05:00 committed by GitHub
parent e211152f93
commit 27f136b802
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: