client: debugging lines added for hang
This commit is contained in:
parent
d5435666f4
commit
8e4b0eabeb
@ -40,15 +40,11 @@ pub async fn negotiate(uri: &str) -> PeerCaps {
|
|||||||
info!(?caps, "🤝 handshake ok");
|
info!(?caps, "🤝 handshake ok");
|
||||||
caps
|
caps
|
||||||
}
|
}
|
||||||
Ok(rsp) => PeerCaps {
|
Ok(Err(e)) if e.code() == Code::Unimplemented => {
|
||||||
camera: rsp.get_ref().camera,
|
|
||||||
microphone: rsp.get_ref().microphone,
|
|
||||||
},
|
|
||||||
Err(Err(e)) if e.code() == Code::Unimplemented => {
|
|
||||||
warn!("🤝 handshake not implemented on server – assuming defaults");
|
warn!("🤝 handshake not implemented on server – assuming defaults");
|
||||||
PeerCaps::default()
|
PeerCaps::default()
|
||||||
}
|
}
|
||||||
Err(Err(e)) => panic!("\"handshake failed: {e}\""),
|
Ok(Err(e)) => panic!("\"handshake failed: {e}\""),
|
||||||
Err(_) => panic!("handshake timed out"),
|
Err(_) => panic!("handshake timed out"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user