This commit is contained in:
rustdesk
2024-07-14 05:47:42 +08:00
parent bed214bd37
commit d0a54a6cc6
6 changed files with 144 additions and 54 deletions

View File

@@ -38,7 +38,7 @@ use hbb_common::{tokio::sync::Mutex as TokioMutex, ResultType};
use scrap::CodecFormat;
use crate::client::{
new_voice_call_request, Client, MediaData, MediaSender, QualityStatus, MILLI1, SEC30,
self, new_voice_call_request, Client, MediaData, MediaSender, QualityStatus, MILLI1, SEC30,
};
#[cfg(not(any(target_os = "android", target_os = "ios")))]
use crate::clipboard::{update_clipboard, CLIPBOARD_INTERVAL};
@@ -134,7 +134,7 @@ impl<T: InvokeUiSession> Remote<T> {
)
.await
{
Ok((mut peer, direct, pk)) => {
Ok(((mut peer, direct, pk), (feedback, rendezvous_server))) => {
self.handler
.connection_round_state
.lock()
@@ -173,6 +173,9 @@ impl<T: InvokeUiSession> Remote<T> {
crate::rustdesk_interval(time::interval(Duration::new(1, 0)));
let mut fps_instant = Instant::now();
let _keep_it =
client::hc_connection(feedback, rendezvous_server, token).await;
loop {
tokio::select! {
res = peer.next() => {