ze interrupt

This commit is contained in:
Jonas Zeunert
2022-06-07 01:10:20 +02:00
parent 166fb85652
commit ecaafa47a3

View File

@@ -1,9 +1,8 @@
import asyncio
import signal
import logging
from solenoids.BottomLeftBankSolenoid import BottomLeftBankSolenoid
from solenoids.BottomRightBankSolenoid import BottomRightBankSolenoid
from solenoids.TopCentralBankSolenoid import TopCentralBankSolenoid
import sys
class Game:
def __init__(self, input_handler, events, game_state):
@@ -15,7 +14,7 @@ class Game:
def interrupt(self, _, __):
logging.info('Received SIGINT. Stopping Game :-)')
self.is_running.release()
sys.exit(0)
async def run(self):
logging.info('Starting game')