Skip to content

Commit

Permalink
Reorder port assignment so server and browser ports are in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderwishart committed Jun 19, 2023
1 parent e0f63d3 commit 656b219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def run_in_new_loop(coro):


def run():
port = get_open_port()

process_discord = Process(target=discord_listener)
process_world = Process(target=run_world)
process_server = Process(target=run_server)
Expand All @@ -81,8 +83,6 @@ def run():

sleep(3)

port = get_open_port()

print(f"Opening browser on port {port}...")
webbrowser.open(f"127.0.0.1:{port}")

Expand Down

0 comments on commit 656b219

Please sign in to comment.