mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 00:33:12 +00:00
improve file write to cm
This commit is contained in:
1 parent
75c9bbb30f
commit
3ea33f7203
4 files changed
+35
-14
No files matched your search
@@ -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