mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-29 08:19:05 +08:00
fix: android overwrite detection for lower version server
This commit is contained in:
parent
03e8bcca81
commit
39756eb16c
@ -870,8 +870,7 @@ impl Connection {
|
||||
allow_err!(peer.send(&msg).await);
|
||||
}
|
||||
Data::SendFiles((id, path, to, file_num, include_hidden, is_remote)) => {
|
||||
// in mobile, can_enable_override_detection is always true
|
||||
let od = true;
|
||||
let od = can_enable_overwrite_detection(self.session.lc.read().unwrap().version);
|
||||
if is_remote {
|
||||
log::debug!("New job {}, write to {} from remote {}", id, to, path);
|
||||
self.write_jobs.push(fs::TransferJob::new_write(
|
||||
@ -882,7 +881,7 @@ impl Connection {
|
||||
include_hidden,
|
||||
is_remote,
|
||||
Vec::new(),
|
||||
true,
|
||||
od,
|
||||
));
|
||||
allow_err!(
|
||||
peer.send(&fs::new_send(id, path, file_num, include_hidden))
|
||||
@ -896,7 +895,7 @@ impl Connection {
|
||||
file_num,
|
||||
include_hidden,
|
||||
is_remote,
|
||||
true,
|
||||
od,
|
||||
) {
|
||||
Err(err) => {
|
||||
self.handle_job_status(id, -1, Some(err.to_string()));
|
||||
|
Loading…
Reference in New Issue
Block a user