stop nodes last

This commit is contained in:
j 2015-11-19 13:51:26 +01:00
parent 7e86e68101
commit a400afc923

View file

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