From 9d4f773b94d7be009599b04d94dae3b924075cc6 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sat, 16 Jun 2018 22:27:27 -0400 Subject: [PATCH] Change order --- pvcd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvcd.py b/pvcd.py index ae76e47f..628bc846 100755 --- a/pvcd.py +++ b/pvcd.py @@ -115,10 +115,10 @@ zk.add_listener(zk_listener) @atexit.register def cleanup(): - update_timer.shutdown() zk.set('/nodes/{}/daemonstate'.format(myhostname), 'stop'.encode('ascii')) zk.stop() zk.close() + update_timer.shutdown() # Gather useful data about our host for staticdata # Static data format: 'cpu_count', 'arch', 'os', 'kernel'