fix, macos as the controlled side, crash on disconnect
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
		
							parent
							
								
									eb5ea17610
								
							
						
					
					
						commit
						7ffe11b000
					
				
							
								
								
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							@ -4881,7 +4881,7 @@ dependencies = [
 | 
			
		||||
[[package]]
 | 
			
		||||
name = "rdev"
 | 
			
		||||
version = "0.5.0-2"
 | 
			
		||||
source = "git+https://github.com/fufesou/rdev#bec664ee8743ade8d2fdd099b114c9eeacd9cfba"
 | 
			
		||||
source = "git+https://github.com/fufesou/rdev#2e8221d653f4995c831ad52966e79a514516b1fa"
 | 
			
		||||
dependencies = [
 | 
			
		||||
 "cocoa",
 | 
			
		||||
 "core-foundation",
 | 
			
		||||
 | 
			
		||||
@ -380,9 +380,6 @@ pub fn try_stop_record_cursor_pos() {
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
    RECORD_CURSOR_POS_RUNNING.store(false, Ordering::SeqCst);
 | 
			
		||||
 | 
			
		||||
    #[cfg(any(target_os = "windows", target_os = "macos"))]
 | 
			
		||||
    let _r = rdev::exit_grab();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// mac key input must be run in main thread, otherwise crash on >= osx 10.15
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user