From e8b666708c5a1a4a4b45a82981c4762e95d1bcc8 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 23 May 2019 23:18:43 -0400 Subject: [PATCH] Add one final keepalive update before exiting --- node-daemon/pvcd/Daemon.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/node-daemon/pvcd/Daemon.py b/node-daemon/pvcd/Daemon.py index db548d5d..b029edba 100644 --- a/node-daemon/pvcd/Daemon.py +++ b/node-daemon/pvcd/Daemon.py @@ -459,10 +459,13 @@ zk_conn.add_listener(zk_listener) # Cleanup function def cleanup(): - logger.out('Terminating pvcd and cleaning up', state='s') - global zk_conn, update_timer, d_domains + logger.out('Performing final keepalive update', state='s') + update_zookeeper() + + logger.out('Terminating pvcd and cleaning up', state='s') + # Stop keepalive thread try: stopKeepaliveTimer()