commit
2d93c93bc4
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue