mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
opt: more debug info
This commit is contained in:
@@ -549,9 +549,11 @@ pub mod connection_manager {
|
||||
let mut h: HashMap<&str, &str> = event.iter().cloned().collect();
|
||||
assert!(h.get("name").is_none());
|
||||
h.insert("name", name);
|
||||
|
||||
|
||||
if let Some(s) = GLOBAL_EVENT_STREAM.read().unwrap().get(super::APP_TYPE_CM) {
|
||||
s.add(serde_json::ser::to_string(&h).unwrap_or("".to_owned()));
|
||||
} else {
|
||||
println!("Push event {} failed. No {} event stream found.", name, super::APP_TYPE_CM);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -401,10 +401,11 @@ impl Connection {
|
||||
conn.handle_voice_call(accepted).await;
|
||||
}
|
||||
ipc::Data::CloseVoiceCall(_reason) => {
|
||||
log::debug!("Close the voice call from the ipc.");
|
||||
conn.close_voice_call().await;
|
||||
// Notify the peer that we closed the voice call.
|
||||
let req = new_voice_call_request(false);
|
||||
conn.send(req).await;
|
||||
let msg = new_voice_call_request(false);
|
||||
conn.send(msg).await;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user