Skip to content

Commit

Permalink
Fix deadlock when using legacy switch in VideoRoom (fixes #3066)
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed Sep 15, 2022
1 parent 38f8b70 commit 063eb2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/janus_videoroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -11421,6 +11421,7 @@ static void *janus_videoroom_handler(void *data) {
janus_mutex_lock(&subscriber->room->mutex);
janus_videoroom_publisher *publisher = g_hash_table_lookup(subscriber->room->participants,
string_ids ? (gpointer)feed_id_str : (gpointer)&feed_id);
janus_mutex_unlock(&subscriber->room->mutex);
if(publisher == NULL || g_atomic_int_get(&publisher->destroyed) ||
!g_atomic_int_get(&publisher->session->started)) {
JANUS_LOG(LOG_ERR, "No such feed (%s)\n", feed_id_str);
Expand Down

0 comments on commit 063eb2f

Please sign in to comment.