Fix Chrome v124+ not closing on Windows. resolves #1161 (#1193)

This commit is contained in:
ilike2burnthing
2024-05-20 00:52:55 +01:00
committed by GitHub
parent c304da2964
commit 5a2c61601e
8 changed files with 15 additions and 15 deletions

View File

@@ -245,6 +245,7 @@ def _resolve_challenge(req: V1RequestBase, method: str) -> ChallengeResolutionT:
raise Exception('Error solving the challenge. ' + str(e).replace('\n', '\\n'))
finally:
if not req.session and driver is not None:
driver.close()
driver.quit()
logging.debug('A used instance of webdriver has been destroyed')