minisize portable service sleep time

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-04-28 19:01:34 +08:00
parent ca7487350f
commit 6e0f75cbde

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;
}
}