RET_VAL_IF(channel == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "channel is NULL");
RET_VAL_IF(channel->from_remote, WEBRTC_ERROR_INVALID_PARAMETER, "do not destroy a data channel obtained from _on_data_channel_cb()");
- g_hash_table_remove(channel->webrtc->data_channels, channel);
+ LOG_INFO("data channel[%p, object:%p] will be destroyed", channel, channel->channel);
- LOG_INFO("data channel[%p, object:%p] is destroyed", channel, channel->channel);
+ g_hash_table_remove(channel->webrtc->data_channels, channel);
return WEBRTC_ERROR_NONE;
}