mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-29 08:19:05 +08:00
commit
2d93c93bc4
@ -194,6 +194,11 @@ pub async fn create_tcp_connection(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_os = "macos")]{
|
||||||
|
use std::process::Command;
|
||||||
|
Command::new("/usr/bin/caffeinate").arg("-u").arg("-t 5").spawn().ok();
|
||||||
|
log::info!("wake up macos");
|
||||||
|
}
|
||||||
Connection::start(addr, stream, id, Arc::downgrade(&server)).await;
|
Connection::start(addr, stream, id, Arc::downgrade(&server)).await;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user