mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-10 06:31:29 +03:00
patch(0): implement cliprdr for macos
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
@@ -122,6 +122,11 @@ impl SysClipboard for X11Clipboard {
|
||||
self.stop.store(false, Ordering::Relaxed);
|
||||
|
||||
loop {
|
||||
if self.is_stopped() {
|
||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||
continue;
|
||||
}
|
||||
|
||||
let sth = match self.wait_file_list() {
|
||||
Ok(sth) => sth,
|
||||
Err(e) => {
|
||||
@@ -131,11 +136,6 @@ impl SysClipboard for X11Clipboard {
|
||||
}
|
||||
};
|
||||
|
||||
if self.is_stopped() {
|
||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||
continue;
|
||||
}
|
||||
|
||||
let Some(paths) = sth else {
|
||||
// just sleep
|
||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||
|
||||
Reference in New Issue
Block a user