Don't overwrite shutdown state on termination

Just a minor quibble and not really impactful.
This commit is contained in:
Joshua Boniface 2021-07-11 23:18:14 -04:00
parent 8c975e5c46
commit f09849bedf
1 changed files with 2 additions and 1 deletions

View File

@ -1779,8 +1779,9 @@ def node_keepalive():
# Get past state and update if needed
if debug:
logger.out("Get past state and update if needed", state='d', prefix='main-thread')
past_state = zkhandler.read(('node.state.daemon', this_node.name))
if past_state != 'run':
if past_state != 'run' and past_state != 'shutdown':
this_node.daemon_state = 'run'
zkhandler.write([
(('node.state.daemon', this_node.name), 'run')