Skip to content

Commit

Permalink
Update check for dummy forwarder session.
Browse files Browse the repository at this point in the history
  • Loading branch information
fancycode committed Oct 22, 2024
1 parent fc9a8ef commit 3167a36
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 @@ -2753,7 +2753,7 @@ static void janus_videoroom_publisher_destroy(janus_videoroom_publisher *p) {
janus_mutex_unlock(&p->rtp_forwarders_mutex);
janus_mutex_unlock(&p->streams_mutex);
/* Release dummy session of the forwarder */
if(p->session && p->session->handle == NULL)
if(p->remote && p->session)
janus_videoroom_session_destroy(p->session);
janus_refcount_decrease(&p->ref);
}
Expand Down

0 comments on commit 3167a36

Please sign in to comment.