Skip to content

Commit

Permalink
Always show user "suspended" state when querying the audiobridge
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed Dec 14, 2023
1 parent 590690d commit bc10447
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/janus_audiobridge.c
Expand Up @@ -2987,8 +2987,7 @@ json_t *janus_audiobridge_query_session(janus_plugin_session *handle) {
json_object_set_new(rtp, "remote-ssrc", json_integer(participant->plainrtp_media.audio_ssrc_peer));
json_object_set_new(info, "plain-rtp", rtp);
}
if(g_atomic_int_get(&participant->suspended))
json_object_set_new(info, "suspended", json_true());
json_object_set_new(info, "suspended", g_atomic_int_get(&participant->suspended) ? json_true() : json_false());
}
if(session->plugin_offer)
json_object_set_new(info, "plugin-offer", json_true());
Expand Down

0 comments on commit bc10447

Please sign in to comment.