mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
add: msg
This commit is contained in:
@@ -1319,7 +1319,7 @@ async fn io_loop(handler: Handler) {
|
||||
clipboard_file_context: None,
|
||||
};
|
||||
remote.io_loop(&key, &token).await;
|
||||
remote.sync_jobs_status_to_local();
|
||||
remote.sync_jobs_status_to_local().await;
|
||||
}
|
||||
|
||||
struct RemoveJob {
|
||||
@@ -1452,7 +1452,7 @@ impl Remote {
|
||||
}
|
||||
}
|
||||
}
|
||||
self.sync_jobs_status_to_local();
|
||||
self.sync_jobs_status_to_local().await;
|
||||
log::debug!("Exit io_loop of id={}", self.handler.id);
|
||||
}
|
||||
Err(err) => {
|
||||
@@ -1798,6 +1798,7 @@ impl Remote {
|
||||
}
|
||||
|
||||
async fn sync_jobs_status_to_local(&mut self) -> bool {
|
||||
println!("sync job status");
|
||||
let mut config: PeerConfig = self.handler.load_config();
|
||||
let mut transfer_metas = TransferSerde::default();
|
||||
for job in self.read_jobs.iter() {
|
||||
@@ -1896,6 +1897,10 @@ impl Remote {
|
||||
job.files = entries;
|
||||
}
|
||||
}
|
||||
Some(file_response::Union::offset(offset)) => {
|
||||
// TODO: offset
|
||||
// upload
|
||||
}
|
||||
Some(file_response::Union::digest(digest)) => {
|
||||
if digest.is_upload {
|
||||
if let Some(job) = fs::get_job(digest.id, &mut self.read_jobs) {
|
||||
|
||||
Reference in New Issue
Block a user