We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d23b375 commit 41d8fb2Copy full SHA for 41d8fb2
seleniumbase/undetected/__init__.py
@@ -367,6 +367,7 @@ def remove_cdc_props_as_needed(self):
367
cdc_props = self._get_cdc_props()
368
if len(cdc_props) > 0:
369
self._hook_remove_cdc_props(cdc_props)
370
+ time.sleep(0.05)
371
372
def get(self, url):
373
self.remove_cdc_props_as_needed()
@@ -438,6 +439,10 @@ def quit(self):
438
439
try:
440
logger.debug("Terminating the UC browser")
441
os.kill(self.browser_pid, 15)
442
+ # Not sure if this is really needed:
443
+ os.waitpid(self.browser_pid, 0)
444
+ except (AttributeError, ChildProcessError, RuntimeError, OSError):
445
+ pass
446
except TimeoutError as e:
447
logger.debug(e, exc_info=True)
448
except Exception:
0 commit comments