mirror of
https://github.com/googleforgames/open-match.git
synced 2025-03-25 13:24:18 +00:00
py3 mmf empty pools bugfix
This commit is contained in:
committed by
Joseph Holley
parent
f234433e33
commit
dd794fd004
@ -74,6 +74,10 @@ with grpc.insecure_channel(api_conn_info) as channel:
|
||||
if cfg['debug']:
|
||||
print("\n'%s': count %06d | elapsed %0.3f" % (empty_pool.name, len(player_pools[empty_pool.name]),timer() - start))
|
||||
|
||||
num_players_total = 0
|
||||
for _, pool in player_pools.items():
|
||||
num_players_total += len(pool)
|
||||
|
||||
#################################################################
|
||||
# Step 5 - Run custom matchmaking logic to try to find a match
|
||||
# This is in the file mmf.py
|
||||
@ -110,9 +114,6 @@ with grpc.insecure_channel(api_conn_info) as channel:
|
||||
pp.pprint(mo)
|
||||
|
||||
# Return error when there are no players in the pools
|
||||
num_players_total = 0
|
||||
for _, pool in player_pools.items():
|
||||
num_players_total += len(pool)
|
||||
if num_players_total == 0:
|
||||
if cfg['debug']:
|
||||
print("All player pools are empty, writing to error to skip the evaluator")
|
||||
|
Reference in New Issue
Block a user