mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
improve file write to cm
This commit is contained in:
@@ -1157,7 +1157,15 @@ async fn start_ipc(
|
||||
res = rx_to_cm.recv() => {
|
||||
match res {
|
||||
Some(data) => {
|
||||
stream.send(&data).await?;
|
||||
if let Data::FS(ipc::FS::WriteBlock{id,
|
||||
file_num,
|
||||
data,
|
||||
compressed}) = data {
|
||||
stream.send(&Data::FS(ipc::FS::WriteBlock{id, file_num, data: Vec::new(), compressed})).await?;
|
||||
stream.send_raw(data).await?;
|
||||
} else {
|
||||
stream.send(&data).await?;
|
||||
}
|
||||
}
|
||||
None => {
|
||||
bail!("expected");
|
||||
|
||||
Reference in New Issue
Block a user