Add sleep after starting thread
This commit is contained in:
parent
226a88b064
commit
c177f977e4
1
pvcd.py
1
pvcd.py
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue