client: debugging lines added for hang

This commit is contained in:
Brad Stein 2025-12-01 01:24:12 -03:00
parent d5435666f4
commit 8e4b0eabeb

View File

@ -40,15 +40,11 @@ pub async fn negotiate(uri: &str) -> PeerCaps {
info!(?caps, "🤝 handshake ok");
caps
}
Ok(rsp) => PeerCaps {
camera: rsp.get_ref().camera,
microphone: rsp.get_ref().microphone,
},
Err(Err(e)) if e.code() == Code::Unimplemented => {
Ok(Err(e)) if e.code() == Code::Unimplemented => {
warn!("🤝 handshake not implemented on server assuming defaults");
PeerCaps::default()
}
Err(Err(e)) => panic!("\"handshake failed: {e}\""),
Ok(Err(e)) => panic!("\"handshake failed: {e}\""),
Err(_) => panic!("handshake timed out"),
}
}