Merge pull request #4227 from 21pages/fix

minisize portable service sleep time
This commit is contained in:
RustDesk 2023-04-28 20:09:38 +08:00 committed by GitHub
commit 8398a6958e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,7 +317,7 @@ pub mod server {
}
if first_frame_captured {
if !utils::counter_equal(shmem.as_ptr().add(ADDR_CAPTURE_FRAME_COUNTER)) {
std::thread::sleep(spf);
std::thread::sleep(std::time::Duration::from_millis(1));
continue;
}
}