Cleanup remote publishers on videoroom destroy

This commit is contained in:
Alexander Malaev 2025-01-20 14:02:50 +03:00
parent 3cdd6ff6a6
commit b5521f0588

View File

@ -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) {