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