diff --git a/ext/server.py b/ext/server.py index 5a20529..085ad9e 100755 --- a/ext/server.py +++ b/ext/server.py @@ -56,12 +56,12 @@ def create_game(): rows = cur.fetchall() while rows: port += 1 - game_count += 1 + game_count += 1 cur.execute("SELECT * FROM games WHERE port=?", (port,)) rows = cur.fetchall() - - if game_count == MAX_GAMES: - abort(401) + + if game_count == MAX_GAMES: + abort(401) # check duplicate name base_name = name