refresh_process_specifics

This commit is contained in:
rustdesk 2024-04-23 20:25:44 +08:00
parent b407893db5
commit 67ee3a5a67

View File

@ -511,7 +511,7 @@ pub fn start_os_service() {
std::process::exit(0);
}
// only refresh this pid and check if valid, no need to refresh all processes since refreshing all is expensive, about 10ms on my machine
if !sys.refresh_process(pid) {
if !sys.refresh_process_specifics(pid, ProcessRefreshKind::new()) {
server = None;
continue;
}