stop nodes last

This commit is contained in:
j 2015-11-19 13:51:26 +01:00
parent 7e86e68101
commit a400afc923
1 changed files with 2 additions and 2 deletions

View File

@ -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)