mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-09 01:11:28 +03:00
update crates, and set new default #cpu
This commit is contained in:
@@ -307,8 +307,8 @@ async fn check_pid(postfix: &str) {
|
||||
use sysinfo::{ProcessExt, System, SystemExt};
|
||||
let mut sys = System::new();
|
||||
sys.refresh_processes();
|
||||
if let Some(p) = sys.process(pid) {
|
||||
if let Some(current) = sys.process(std::process::id() as _) {
|
||||
if let Some(p) = sys.process(pid.into()) {
|
||||
if let Some(current) = sys.process((std::process::id() as i32).into()) {
|
||||
if current.name() == p.name() {
|
||||
// double check with connect
|
||||
if connect(1000, postfix).await.is_ok() {
|
||||
|
||||
Reference in New Issue
Block a user