mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2026-06-18 14:41:21 +00:00
Refactoring
This commit is contained in:
+4
-6
@@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user