Sync byte timeout fixes.
This commit is contained in:
		
							parent
							
								
									b23a811849
								
							
						
					
					
						commit
						d7b88cfabd
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -150,9 +150,10 @@ namespace Mist {
 | 
				
			||||||
      //sync byte 0 = no sync yet, wait for sync from controller...
 | 
					      //sync byte 0 = no sync yet, wait for sync from controller...
 | 
				
			||||||
      IPC::statExchange tmpEx(statsPage.getData());
 | 
					      IPC::statExchange tmpEx(statsPage.getData());
 | 
				
			||||||
      unsigned int i = 0;
 | 
					      unsigned int i = 0;
 | 
				
			||||||
      while (!tmpEx.getSync() && i < 30){
 | 
					      while (!tmpEx.getSync() && i++ < 30){
 | 
				
			||||||
        Util::sleep(100);
 | 
					        Util::wait(100);
 | 
				
			||||||
        stats();
 | 
					        stats();
 | 
				
			||||||
 | 
					        tmpEx = IPC::statExchange(statsPage.getData());
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      HIGH_MSG("USER_NEW sync achieved: %u", (unsigned int)tmpEx.getSync());
 | 
					      HIGH_MSG("USER_NEW sync achieved: %u", (unsigned int)tmpEx.getSync());
 | 
				
			||||||
      //1 = check requested (connection is new)
 | 
					      //1 = check requested (connection is new)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue