stop nodes last
This commit is contained in:
parent
7e86e68101
commit
a400afc923
1 changed files with 2 additions and 2 deletions
|
@ -119,13 +119,13 @@ def run():
|
||||||
def shutdown():
|
def shutdown():
|
||||||
if state.downloads:
|
if state.downloads:
|
||||||
state.downloads.join()
|
state.downloads.join()
|
||||||
if state.nodes:
|
|
||||||
state.nodes.join()
|
|
||||||
if state.scraping:
|
if state.scraping:
|
||||||
state.scraping.join()
|
state.scraping.join()
|
||||||
http_server.stop()
|
http_server.stop()
|
||||||
if state.tasks:
|
if state.tasks:
|
||||||
state.tasks.join()
|
state.tasks.join()
|
||||||
|
if state.nodes:
|
||||||
|
state.nodes.join()
|
||||||
if PID and os.path.exists(PID):
|
if PID and os.path.exists(PID):
|
||||||
os.unlink(PID)
|
os.unlink(PID)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue