Fix crash during answer

This commit is contained in:
dijunkun
2023-07-17 10:27:13 +08:00
parent efc1e3bd85
commit 8276dd6c20
3 changed files with 4 additions and 60 deletions

View File

@@ -63,6 +63,8 @@ int IceTransport::InitIceTransport() {
int IceTransport::InitIceTransport(std::string const &id) {
transport_id_ = id;
ice_agent_ = new IceAgent();
ice_agent_->CreateIceAgent(
[](juice_agent_t *agent, juice_state_t state, void *user_ptr) {
LOG_INFO("state_change: {}", ice_status[state]);