mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
cleanup browser when agent controller finish runinng
This commit is contained in:
@@ -377,3 +377,7 @@ class AgentController:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
# add destructor to cleanup resources
|
||||
def __del__(self):
|
||||
self.browser.close()
|
||||
|
||||
Reference in New Issue
Block a user