mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
skip PeerConfig saving when not receiving peerinfo to keep peercard order
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -850,6 +850,11 @@ impl<T: InvokeUiSession> Remote<T> {
|
||||
}
|
||||
|
||||
pub async fn sync_jobs_status_to_local(&mut self) -> bool {
|
||||
let peer_version = self.handler.lc.read().unwrap().version;
|
||||
if peer_version == 0 {
|
||||
log::info!("skip saving job status");
|
||||
return false;
|
||||
}
|
||||
log::info!("sync transfer job status");
|
||||
let mut config: PeerConfig = self.handler.load_config();
|
||||
let mut transfer_metas = TransferSerde::default();
|
||||
|
||||
Reference in New Issue
Block a user