test
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
		
							parent
							
								
									4ddb0cd646
								
							
						
					
					
						commit
						fc89257566
					
				| @ -604,11 +604,13 @@ fn run(sp: GenericService) -> ResultType<()> { | ||||
|                 { | ||||
|                     would_block_count += 1; | ||||
|                     if !scrap::is_x11() { | ||||
|                         if would_block_count >= 100 { | ||||
|                         if would_block_count >= 1000 { | ||||
|                             // For now, the user should choose and agree screen sharing agiain.
 | ||||
|                             // to-do: Remember choice, attendless...
 | ||||
|                             super::wayland::release_resouce(); | ||||
|                             bail!("Wayland capturer none 100 times, try restart captuere"); | ||||
|                             // super::wayland::release_resouce();
 | ||||
|                             // bail!("Wayland capturer none 100 times, try restart captuere");
 | ||||
|                             log::error!("Wayland capturer none 1000 times, try restart captuere"); | ||||
|                             would_block_count = 0; | ||||
|                         } | ||||
|                     } | ||||
|                 } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user