From e16d3afe2daad0fa65724137f17138b52268efa1 Mon Sep 17 00:00:00 2001 From: Gumi / Megumi Date: Fri, 12 May 2023 08:51:35 +0200 Subject: [PATCH] Fix OSError: [WinError 6] The handle is invalid https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/955# --- undetected_chromedriver/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index cc66e29..acdc483 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -752,7 +752,6 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver): else: logger.debug("successfully removed %s" % self.user_data_dir) break - time.sleep(0.1) # dereference patcher, so patcher can start cleaning up as well. # this must come last, otherwise it will throw 'in use' errors