mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
Fix loop graceful shutdown (#4394)
This commit is contained in:
@@ -140,7 +140,7 @@ class AgentSession:
|
||||
await self.security_analyzer.close()
|
||||
|
||||
if self.loop:
|
||||
self.loop.call_soon_threadsafe(self.loop.stop)
|
||||
self.loop.stop()
|
||||
|
||||
self._closed = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user