mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-18 10:41:03 +03:00
feat: file transfer, resume (#12626)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -2705,7 +2705,11 @@ impl Connection {
|
||||
}
|
||||
Some(file_action::Union::SendConfirm(r)) => {
|
||||
if let Some(job) = fs::get_job(r.id, &mut self.read_jobs) {
|
||||
job.confirm(&r);
|
||||
job.confirm(&r).await;
|
||||
} else {
|
||||
if let Ok(sc) = r.write_to_bytes() {
|
||||
self.send_fs(ipc::FS::SendConfirm(sc));
|
||||
}
|
||||
}
|
||||
}
|
||||
Some(file_action::Union::Rename(r)) => {
|
||||
@@ -2749,6 +2753,7 @@ impl Connection {
|
||||
file_size: d.file_size,
|
||||
last_modified: d.last_modified,
|
||||
is_upload: true,
|
||||
is_resume: d.is_resume,
|
||||
}),
|
||||
Some(file_response::Union::Error(e)) => {
|
||||
self.send_fs(ipc::FS::WriteError {
|
||||
|
||||
Reference in New Issue
Block a user