Skip to content

Commit

Permalink
Touching up to just include some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenmc committed Dec 26, 2020
1 parent 36e0a2d commit d1da0eb
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/JanusFtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,21 +233,7 @@ void JanusFtl::DataReady(janus_plugin_session* handle)
void JanusFtl::HangUpMedia(janus_plugin_session* handle)
{
// TODO
JANUS_LOG(LOG_INFO, "FTL: HangUpMedia\n");

std::shared_ptr<JanusSession> session;
{
std::lock_guard<std::mutex> lock(sessionsMutex);
if (sessions.count(handle) <= 0)
{
JANUS_LOG(LOG_ERR, "FTL: No session associated with this handle...\n");
return;
}
session = sessions[handle];
}

session->SetIsStarted(false);
session->ResetRtpSwitchingContext();
JANUS_LOG(LOG_WARN, "FTL: HangUpMedia called by session, but we're not handling it!\n");
}

void JanusFtl::DestroySession(janus_plugin_session* handle, int* error)
Expand Down

0 comments on commit d1da0eb

Please sign in to comment.