Skip to content

Commit

Permalink
merge PR:Fix file descriptor leak in service on quit() . ultrafunkams…
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentOngaro committed Apr 5, 2024
1 parent 1cb96a4 commit 31454e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions undetected_chromedriver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,9 @@ def search_frame(f=None):

def quit(self):
try:
self.service.stop()
self.service.process.kill()
self.command_executor.close()
logger.debug("webdriver process ended")
except (AttributeError, RuntimeError, OSError):
pass
Expand Down

0 comments on commit 31454e1

Please sign in to comment.