opt: more debug info

This commit is contained in:
Kingtous
2023-02-07 19:33:58 +08:00
parent db8b6d618f
commit c4b1c51e9e
3 changed files with 7 additions and 6 deletions

View File

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