Skip to content

Commit ca84cdd

Browse files
committed
Update CDP Mode
1 parent b701e20 commit ca84cdd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

seleniumbase/undetected/__init__.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,10 @@ def reconnect(self, timeout=0.1):
460460
"chrome-extension://"
461461
):
462462
# https://issues.chromium.org/issues/396611138
463-
# (Uncomment below when resolved)
464-
# self.close()
463+
# (Remove the Linux conditional when resolved)
464+
# (So that close() is always called)
465+
if "linux" in sys.platform:
466+
self.close()
465467
if self.service.is_connectable():
466468
self.stop_client()
467469
self.service.stop()
@@ -499,8 +501,10 @@ def connect(self):
499501
"chrome-extension://"
500502
):
501503
# https://issues.chromium.org/issues/396611138
502-
# (Uncomment below when resolved)
503-
# self.close()
504+
# (Remove the Linux conditional when resolved)
505+
# (So that close() is always called)
506+
if "linux" in sys.platform:
507+
self.close()
504508
if self.service.is_connectable():
505509
self.stop_client()
506510
self.service.stop()

0 commit comments

Comments
 (0)