Skip to content

Commit

Permalink
Cleanup remote publishers on videoroom destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Malaev committed Jan 20, 2025
1 parent 3cdd6ff commit b5521f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/janus_videoroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b5521f0

Please sign in to comment.