Add sleep after starting thread

This commit is contained in:
Joshua Boniface 2018-05-31 23:46:08 -04:00
parent 226a88b064
commit c177f977e4
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ def updatenodes(new_node_list):
t_node[node] = NodeInstance.NodeInstance(node, node_list, zk); t_node[node] = NodeInstance.NodeInstance(node, node_list, zk);
if t_node[node].name == myhostname: if t_node[node].name == myhostname:
t_node[node].start() t_node[node].start()
time.sleep(1)
node_state = t_node[node].getstate() node_state = t_node[node].getstate()
if node_state == 'start': if node_state == 'start':