refactor video_ack_required

This commit is contained in:
rustdesk 2022-02-05 01:19:24 +08:00
parent 5a0f8d008e
commit 3ec69b6d97
2 changed files with 2 additions and 3 deletions

View File

@ -54,6 +54,7 @@ message LoginRequest {
FileTransfer file_transfer = 7;
PortForward port_forward = 8;
}
bool video_ack_required = 9;
}
message ChatMessage { string text = 1; }

View File

@ -684,6 +684,7 @@ impl Connection {
if let Some(o) = lr.option.as_ref() {
self.update_option(o).await;
}
self.video_ack_required = lr.video_ack_required;
if self.authorized {
return true;
}
@ -932,9 +933,6 @@ impl Connection {
}
}
Some(misc::Union::video_received(_)) => {
if !self.video_ack_required {
self.video_ack_required = true;
}
video_service::notify_video_frame_feched(self.inner.id, Some(Instant::now().into()));
}
_ => {}