Fix exit hang on linux
This commit is contained in:
parent
a838ef7621
commit
86c0ca14e7
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
||||||
October, November 2020
|
October, November 2020
|
||||||
"""
|
"""
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
import os
|
||||||
from file_manager import FileManager
|
from file_manager import FileManager
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
from multiprocessing.queues import Queue
|
from multiprocessing.queues import Queue
|
||||||
|
@ -98,7 +99,7 @@ class BAPSicleServer:
|
||||||
self.stopServer()
|
self.stopServer()
|
||||||
|
|
||||||
if self.state.get()["running_state"] != "restarting":
|
if self.state.get()["running_state"] != "restarting":
|
||||||
break
|
os._exit(0)
|
||||||
|
|
||||||
def check_processes(self):
|
def check_processes(self):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue