Add explicit returns from flush/ready threads

This commit is contained in:
Joshua Boniface 2019-12-26 11:08:00 -05:00
parent 47cf0a8006
commit b3483fa810
1 changed files with 2 additions and 0 deletions

View File

@ -663,6 +663,7 @@ class NodeInstance(object):
zkhandler.writedata(self.zk_conn, { '/nodes/{}/domainstate'.format(self.name): 'flushed' })
self.flush_thread = None
self.flush_stopper = False
return
def unflush(self):
self.logger.out('Restoring node {} to active service.'.format(self.name), state='i')
@ -710,3 +711,4 @@ class NodeInstance(object):
zkhandler.writedata(self.zk_conn, { '/nodes/{}/domainstate'.format(self.name): 'ready' })
self.flush_thread = None
self.flush_stopper = False
return