Browse Source

terminate when balance server is not reachable

feature/balanceutils
Fr3deric 8 years ago committed by Frederic
parent
commit
97a21f4d45
  1. 2
      gamemenu.py

2
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,6 +273,7 @@ class BalanceInput(AbstractInput, threading.Thread): @@ -272,6 +273,7 @@ class BalanceInput(AbstractInput, threading.Thread):
def get_event(self):
evt = self.evt
if self.running:
self.evt = None
return evt

Loading…
Cancel
Save