In the init() function of NiceConnection.cpp file, the "loop" variable is created with NULL as the context parameter as the following.
loop = g_main_loop_new(NULL, FALSE);
This will leads to that the all agents will be created with the same context and the first agent will handle all the data from network under multi-thread environment.
our proposal fixing is that:
loop_ = g_main_loop_new(g_main_context_new(), FALSE);
You may refer the the multi-thread sample code in libnice code.
In the init() function of NiceConnection.cpp file, the "loop" variable is created with NULL as the context parameter as the following.
loop = g_main_loop_new(NULL, FALSE);
This will leads to that the all agents will be created with the same context and the first agent will handle all the data from network under multi-thread environment.
our proposal fixing is that: loop_ = g_main_loop_new(g_main_context_new(), FALSE);
You may refer the the multi-thread sample code in libnice code.