mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
[android] fix build; ignore battery optimizations
This commit is contained in:
1 parent
bb8257b7f2
commit
fb02fc1197
22 files changed
+128
-15
No files matched your search
@@ -316,6 +316,9 @@ async fn test_nat_type_() -> ResultType<bool> {
|
||||
}
|
||||
|
||||
pub async fn get_rendezvous_server(ms_timeout: u64) -> (String, Vec<String>, bool) {
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
let (mut a, mut b) = get_rendezvous_server_(ms_timeout);
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
let (mut a, mut b) = get_rendezvous_server_(ms_timeout).await;
|
||||
let mut b: Vec<String> = b
|
||||
.drain(..)
|
||||
|
||||
Reference in new issue
Block a user