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():
global run
from core import Core
core = Core()
while run:
try:
core.start()
except KeyboardInterrupt:
run = False
try:
core.start()
except KeyboardInterrupt:
core.run = False
core.stop()