mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
delete stream by id for HTTP interface
This commit is contained in:
parent
8dae044600
commit
1e9a53da3f
4 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue