Skip to content

Commit 47f8f4d

Browse files
spscreamAlexander Malaev
and
Alexander Malaev
authored
Fix possible deadlock on udp socket opening error on rtp_forward (#3468)
Co-authored-by: Alexander Malaev <amalaev@ccsteam.ru>
1 parent cb10621 commit 47f8f4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugins/janus_videoroom.c

+1
Original file line numberDiff line numberDiff line change
@@ -5839,6 +5839,7 @@ static json_t *janus_videoroom_process_synchronous_request(janus_videoroom_sessi
58395839
if(publisher->udp_sock <= 0 ||
58405840
(!ipv6_disabled && setsockopt(publisher->udp_sock, IPPROTO_IPV6, IPV6_V6ONLY, &v6only, sizeof(v6only)) != 0)) {
58415841
janus_mutex_unlock(&publisher->rtp_forwarders_mutex);
5842+
janus_mutex_unlock(&publisher->streams_mutex);
58425843
janus_refcount_decrease(&publisher->ref);
58435844
janus_mutex_unlock(&videoroom->mutex);
58445845
janus_refcount_decrease(&videoroom->ref);

0 commit comments

Comments
 (0)