From 6e0f75cbdeab4cd103a6174dddb3d279bb434ce8 Mon Sep 17 00:00:00 2001 From: 21pages Date: Fri, 28 Apr 2023 19:01:34 +0800 Subject: [PATCH] minisize portable service sleep time Signed-off-by: 21pages --- src/server/portable_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/portable_service.rs b/src/server/portable_service.rs index 6cff2b9dd..617763bb3 100644 --- a/src/server/portable_service.rs +++ b/src/server/portable_service.rs @@ -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; } }