mirror of
https://github.com/meetecho/janus-gateway.git
synced 2025-04-20 18:37:31 +08:00
Cleanup remote publishers on videoroom destroy
This commit is contained in:
parent
3cdd6ff6a6
commit
b5521f0588
@ -13769,7 +13769,7 @@ static void *janus_videoroom_remote_publisher_thread(void *user_data) {
|
||||
|
||||
/* Loop */
|
||||
int num = 0, i = 0;
|
||||
while(!g_atomic_int_get(&publisher->remote_leaving) && !g_atomic_int_get(&publisher->destroyed)) {
|
||||
while(!g_atomic_int_get(&publisher->remote_leaving) && !g_atomic_int_get(&publisher->destroyed) && !g_atomic_int_get(&videoroom->destroyed)) {
|
||||
/* Prepare poll */
|
||||
num = 0;
|
||||
if(publisher->remote_fd != -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user