Add sleep after starting thread
This commit is contained in:
		
							
								
								
									
										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':
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user