Don't crash cleanup if no this_node

This commit is contained in:
Joshua Boniface 2021-08-29 03:52:18 -04:00
parent fb46f5f9e9
commit be954c1625
1 changed files with 7 additions and 3 deletions

View File

@ -207,9 +207,13 @@ def entrypoint():
# Waiting for any flushes to complete # Waiting for any flushes to complete
logger.out('Waiting for any active flushes', state='s') logger.out('Waiting for any active flushes', state='s')
if this_node is not None: try:
while this_node.flush_thread is not None: if this_node is not None:
sleep(0.5) while this_node.flush_thread is not None:
sleep(0.5)
except Exception:
# We really don't care here, just proceed
pass
# Stop console logging on all VMs # Stop console logging on all VMs
logger.out('Stopping domain console watchers', state='s') logger.out('Stopping domain console watchers', state='s')