mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Check ice status by using ice_transmission::state_ instead of nice_agent_get_component_state() method
This commit is contained in:
@@ -228,11 +228,11 @@ int IceAgent::Send(const char *data, size_t size) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (NiceComponentState::NICE_COMPONENT_STATE_READY !=
|
||||
nice_agent_get_component_state(agent_, stream_id_, 1)) {
|
||||
LOG_ERROR("Nice agent not ready");
|
||||
return -1;
|
||||
}
|
||||
// if (NiceComponentState::NICE_COMPONENT_STATE_READY !=
|
||||
// nice_agent_get_component_state(agent_, stream_id_, 1)) {
|
||||
// LOG_ERROR("Nice agent not ready");
|
||||
// return -1;
|
||||
// }
|
||||
|
||||
nice_agent_send(agent_, stream_id_, 1, size, data);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user