patch: fix arboard pollution

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
ClSlaid
2023-10-28 09:55:34 +08:00
parent 053723647b
commit ed0ded33b7
5 changed files with 78 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ impl LocalFile {
let wstr: WString<utf16string::LE> = WString::from(&path);
let name = wstr.as_bytes();
log::debug!(
log::trace!(
"put file to list: name_len {}, name {}",
name.len(),
&self.name

View File

@@ -328,6 +328,7 @@ impl ClipboardContext {
}
pub fn serve(&self, conn_id: i32, msg: ClipboardFile) -> Result<(), CliprdrError> {
log::debug!("serve clipboard file from conn: {}", conn_id);
if self.is_stopped() {
log::debug!("cliprdr stopped, restart it");
self.run()?;