mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-08-17 16:25:36 +00:00
Refactoring
This commit is contained in:
parent
9518fcad11
commit
aab20c17a1
10
src/main.py
10
src/main.py
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user