Skip to content

Commit

Permalink
Simplify ended check
Browse files Browse the repository at this point in the history
  • Loading branch information
Askaholic committed Jan 25, 2020
1 parent 853e1ed commit fb39c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/games/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ async def check_sim_end(self):
return
if self.state != GameState.LIVE:
return
if len([conn for conn in self.connections if not conn.finished_sim]) > 0:
if [conn for conn in self.connections if not conn.finished_sim]:
return
self.ended = True
async with self._db.acquire() as conn:
Expand Down

0 comments on commit fb39c43

Please sign in to comment.