Skip to content

Commit

Permalink
Remove unneeded mutex unlock that was causing a crash in the videoroo…
Browse files Browse the repository at this point in the history
…m plugin (fixes #2318).
  • Loading branch information
atoppi committed Aug 21, 2020
1 parent d1d044c commit eba22d3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/janus_videoroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -5482,7 +5482,6 @@ static void janus_videoroom_hangup_media_internal(gpointer session_data) {
janus_videoroom_session *session = (janus_videoroom_session *)session_data;
g_atomic_int_set(&session->started, 0);
if(!g_atomic_int_compare_and_exchange(&session->hangingup, 0, 1)) {
janus_mutex_unlock(&sessions_mutex);
return;
}
g_atomic_int_set(&session->dataready, 0);
Expand Down

0 comments on commit eba22d3

Please sign in to comment.