"""Handle commands coming through queue q, run game, send results back."""
while True:
try:
- command, connection_id = q.get(timeout=1)
+ command, connection_id = q.get(timeout=0.001)
self.handle_input(connection_id, command)
except queue.Empty:
self.game.run_tick()