Feat: file transfer, resume (#12557)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-08-09 23:47:19 +08:00
committed by GitHub
parent 302dad2016
commit 43ec57c769
4 changed files with 61 additions and 21 deletions

View File

@@ -2703,7 +2703,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)) => {