Refactoring

This commit is contained in:
Maxim Khomutov 2023-07-12 20:24:56 +03:00
parent 9518fcad11
commit aab20c17a1

View File

@ -18,14 +18,12 @@ run = True
def main(): def main():
global run
from core import Core from core import Core
core = Core() core = Core()
while run: try:
try: core.start()
core.start() except KeyboardInterrupt:
except KeyboardInterrupt: core.run = False
run = False
core.stop() core.stop()