mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08: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