Browse Source

terminate when balance server is not reachable

master
Fr3deric 8 years ago committed by Frederic
parent
commit
97a21f4d45
  1. 4
      gamemenu.py

4
gamemenu.py

@ -200,6 +200,7 @@ class BalanceInput(AbstractInput, threading.Thread): @@ -200,6 +200,7 @@ class BalanceInput(AbstractInput, threading.Thread):
self.evt = None
self.lastevt = None
self.player_present = False
self.running = False
threading.Thread.__init__(self, daemon=True)
self.start()
@ -272,7 +273,8 @@ class BalanceInput(AbstractInput, threading.Thread): @@ -272,7 +273,8 @@ class BalanceInput(AbstractInput, threading.Thread):
def get_event(self):
evt = self.evt
self.evt = None
if self.running:
self.evt = None
return evt
def start_game(game, players):

Loading…
Cancel
Save