mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
patch: re apply time limited api in common clipboard
when no content in text clipboard, it will wait forever Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
@@ -87,7 +87,7 @@ impl ClipboardContext {
|
||||
let clip = self.clip;
|
||||
let prop = self.prop;
|
||||
|
||||
const TIMEOUT: std::time::Duration = std::time::Duration::from_millis(100);
|
||||
const TIMEOUT: std::time::Duration = std::time::Duration::from_millis(120);
|
||||
|
||||
let text_content = get_clipboard()?
|
||||
.load(clip, self.string_getter, prop, TIMEOUT)
|
||||
|
||||
Reference in New Issue
Block a user