delete stream by id for HTTP interface

This commit is contained in:
orignal 2020-03-04 15:54:09 -05:00
parent 8dae044600
commit 1e9a53da3f
4 changed files with 21 additions and 0 deletions

View file

@ -1128,6 +1128,15 @@ namespace stream
}
}
bool StreamingDestination::DeleteStream (uint32_t recvStreamID)
{
auto it = m_Streams.find (recvStreamID);
if (it == m_Streams.end ())
return false;
DeleteStream (it->second);
return true;
}
void StreamingDestination::SetAcceptor (const Acceptor& acceptor)
{
m_Acceptor = acceptor; // we must set it immediately for IsAcceptorSet