Is there a reason for ignoring and not sending an error response?
“unpublish” async. request in the videoroom receives an error response.
janus_streaming.c
else if(!strcasecmp(request_text, "stop")) {
janus_mutex_unlock(&sessions_mutex);
if(g_atomic_int_get(&session->stopping) || !g_atomic_int_get(&session->started)) {
/* Been there, done that: ignore */
janus_streaming_message_free(msg);
continue;
}
JANUS_LOG(LOG_VERB, "Stopping the streaming\n");
...
}
janus_videoroom.c
else if(!strcasecmp(request_text, "unpublish")) {
/* This participant wants to unpublish */
if(!g_atomic_int_get(&participant->session->started)) {
janus_refcount_decrease(&participant->ref);
JANUS_LOG(LOG_ERR, "Can't unpublish, not published\n");
error_code = JANUS_VIDEOROOM_ERROR_NOT_PUBLISHED;
g_snprintf(error_cause, 512, "Can't unpublish, not published");
goto error;
}
/* Tell the core to tear down the PeerConnection, hangup_media will do the rest */
...
}