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():
|
||||
if state.downloads:
|
||||
state.downloads.join()
|
||||
if state.nodes:
|
||||
state.nodes.join()
|
||||
if state.scraping:
|
||||
state.scraping.join()
|
||||
http_server.stop()
|
||||
if state.tasks:
|
||||
state.tasks.join()
|
||||
if state.nodes:
|
||||
state.nodes.join()
|
||||
if PID and os.path.exists(PID):
|
||||
os.unlink(PID)
|
||||
|
||||
|
|
Loading…
Reference in a new issue