commit | c885829fa319ff63dfb610c5dfc26bfbf14040dd | [log] [tgz] |
---|---|---|
author | Gregory P. Smith [Google LLC] <gps@google.com> | Wed Jun 08 13:54:24 2022 -0700 |
committer | Gregory P. Smith [Google LLC] <gps@google.com> | Wed Jun 08 13:54:24 2022 -0700 |
tree | 5516f6216f6c0d88cf331b12522e28d3f869e48f | |
parent | 569bb79bcd8e6c4e6c077cb03a5859d7ffe46bab [diff] |
Remove trailing space.
diff --git a/src/portpicker.py b/src/portpicker.py index 28c1971..4b514d7 100644 --- a/src/portpicker.py +++ b/src/portpicker.py
@@ -205,7 +205,7 @@ # Ask the OS for an unused port. port = bind(0, _PROTOS[0][0], _PROTOS[0][1]) # Check if this port is unused on the other protocol. - if (port and port not in _random_ports and + if (port and port not in _random_ports and bind(port, _PROTOS[1][0], _PROTOS[1][1])): _random_ports.add(port) return port