Change order

This commit is contained in:
Joshua Boniface 2018-06-16 22:27:27 -04:00
parent 90801858f4
commit 9d4f773b94
1 changed files with 1 additions and 1 deletions

View File

@ -115,10 +115,10 @@ zk.add_listener(zk_listener)
@atexit.register @atexit.register
def cleanup(): def cleanup():
update_timer.shutdown()
zk.set('/nodes/{}/daemonstate'.format(myhostname), 'stop'.encode('ascii')) zk.set('/nodes/{}/daemonstate'.format(myhostname), 'stop'.encode('ascii'))
zk.stop() zk.stop()
zk.close() zk.close()
update_timer.shutdown()
# Gather useful data about our host for staticdata # Gather useful data about our host for staticdata
# Static data format: 'cpu_count', 'arch', 'os', 'kernel' # Static data format: 'cpu_count', 'arch', 'os', 'kernel'