Add check for valid zk attribute before disconnect

Change-Id: Iaecdd25c23d6524986adeb9a4edfffbbf2c014e5
This commit is contained in:
David Shrewsbury 2017-03-23 08:25:09 -04:00
parent 6e206087df
commit e9272a8b98

View File

@ -1338,7 +1338,8 @@ class NodePool(threading.Thread):
if self.isAlive(): if self.isAlive():
self.join() self.join()
self.zk.disconnect() if self.zk:
self.zk.disconnect()
self.log.debug("Finished stopping") self.log.debug("Finished stopping")
def loadConfig(self): def loadConfig(self):