Update WebHostLib/customserver.py

Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
This commit is contained in:
Uriel
2026-03-07 22:24:13 -03:00
committed by GitHub
parent 62f56e165a
commit 62afec9733

View File

@@ -227,6 +227,7 @@ def create_random_port_socket(game_ports: tuple[str | int], host: str) -> socket
while i > 0:
port_num = weighted_random(parsed_ports, weights)
if port_num in used_ports:
used_ports = get_used_ports()
continue
i -= 0