fix interrupt

This commit is contained in:
Jonas Zeunert
2022-06-07 01:07:47 +02:00
parent bbba1bf025
commit 166fb85652
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ class Game:
signal.signal(signal.SIGINT, self.interrupt)
self.is_running = asyncio.Condition()
def interrupt(self):
def interrupt(self, _, __):
logging.info('Received SIGINT. Stopping Game :-)')
self.is_running.release()

View File

@@ -282,7 +282,7 @@ class PlayerState:
def addPoints(self, points):
if points == 0:
return
if not self.isActive:
return