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

@@ -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()));
}
_ => {}