Add check for valid zk attribute before disconnect
Change-Id: Iaecdd25c23d6524986adeb9a4edfffbbf2c014e5
This commit is contained in:
parent
6e206087df
commit
e9272a8b98
@ -1338,7 +1338,8 @@ class NodePool(threading.Thread):
|
||||
|
||||
if self.isAlive():
|
||||
self.join()
|
||||
self.zk.disconnect()
|
||||
if self.zk:
|
||||
self.zk.disconnect()
|
||||
self.log.debug("Finished stopping")
|
||||
|
||||
def loadConfig(self):
|
||||
|
Loading…
Reference in New Issue
Block a user