[fix] fix ice status error during closing ice connection

This commit is contained in:
dijunkun
2024-10-30 17:11:35 +08:00
parent 35d4f522c5
commit 9d2e6f0c2a
6 changed files with 125 additions and 100 deletions

View File

@@ -305,6 +305,11 @@ int IceAgent::Send(const char *data, size_t size) {
return -1;
}
if (agent_closed_) {
LOG_ERROR("Nice agent is closed");
return -1;
}
// if (NiceComponentState::NICE_COMPONENT_STATE_READY !=
// nice_agent_get_component_state(agent_, stream_id_, 1)) {
// LOG_ERROR("Nice agent not ready");