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 Jul 4, 2024
1 parent e670a8b commit e02d752
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 @@ -2469,7 +2469,7 @@ static void janus_videoroom_publisher_destroy(janus_videoroom_publisher *p) {
}
janus_mutex_unlock(&p->rtp_forwarders_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 e02d752

Please sign in to comment.