Merge pull request #2037 from djex/master

fix: sending file from local to remote
This commit is contained in:
RustDesk 2022-11-16 09:19:25 +08:00 committed by GitHub
commit c6082e0a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1609,8 +1609,7 @@ async fn start_ipc(
file_num,
data,
compressed}) = data {
stream.send(&Data::FS(ipc::FS::WriteBlock{id, file_num, data: Bytes::new(), compressed})).await?;
stream.send_raw(data).await?;
stream.send(&Data::FS(ipc::FS::WriteBlock{id, file_num, data, compressed})).await?;
} else {
stream.send(&data).await?;
}