Two NiceAgent objects cannot send data at the same time
I'm developing a WebRTC datachannel implementation with libnice to gather and handle ICE candidates and to send data to another peer with nice_agent_send(). Each peer handler object has its own NiceAgent object and g_main_loop_run() of every NiceAgeng object works in separate thread. However when one peer is sending data and the other is beginning to gather candidates, connection of the first peer breaks down. I can see Resource temporarily unavaliable (EGAIN) error.