fix 100% cpu usage of clipboard disabled on remote menu

This commit is contained in:
rustdesk 2024-06-30 10:57:15 +08:00
parent 1f4c62e480
commit 1252f45506

View File

@ -736,6 +736,7 @@ impl Client {
break;
}
if !TEXT_CLIPBOARD_STATE.lock().unwrap().is_required {
std::thread::sleep(Duration::from_millis(CLIPBOARD_INTERVAL));
continue;
}