Skip to content

Commit 004d273

Browse files
committed
[py] Remove call to socket.listen()
1 parent 2bb39de commit 004d273

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

py/selenium/webdriver/common/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def free_port() -> int:
4646
except OSError:
4747
raise RuntimeError("Can't find free port (Unable to bind to IPv4 or IPv6)")
4848
try:
49-
free_socket.listen(5)
5049
port: int = free_socket.getsockname()[1]
5150
except Exception as e:
5251
raise RuntimeError(f"Can't find free port: ({e})")

0 commit comments

Comments
 (0)