Skip to content

Commit

Permalink
Fix file descriptor leak in service on quit(). resolves #983
Browse files Browse the repository at this point in the history
  • Loading branch information
ilike2burnthing committed Apr 9, 2024
1 parent 20cd294 commit 8dea0ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/undetected_chromedriver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,9 @@ def search_frame(f=None):

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

0 comments on commit 8dea0ed

Please sign in to comment.