Skip to content

Commit

Permalink
Fix a deadlock in audiobridge changeroom action on "User ID already t…
Browse files Browse the repository at this point in the history
…aken" error (#2280)
  • Loading branch information
JeckLabs committed Jul 13, 2020
1 parent 3ec52d1 commit e9b1da4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/janus_audiobridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -5753,6 +5753,7 @@ static void *janus_audiobridge_handler(void *data) {
/* User ID already taken */
janus_mutex_unlock(&audiobridge->mutex);
janus_refcount_decrease(&audiobridge->ref);
janus_mutex_unlock(&rooms_mutex);
error_code = JANUS_AUDIOBRIDGE_ERROR_ID_EXISTS;
JANUS_LOG(LOG_ERR, "User ID %s already exists\n", user_id_str);
g_snprintf(error_cause, 512, "User ID %s already exists", user_id_str);
Expand Down

0 comments on commit e9b1da4

Please sign in to comment.