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
|
@ -1191,6 +1191,16 @@ namespace client
|
|||
}
|
||||
}
|
||||
|
||||
bool ClientDestination::DeleteStream (uint32_t recvStreamID)
|
||||
{
|
||||
if (m_StreamingDestination->DeleteStream (recvStreamID))
|
||||
return true;
|
||||
for (auto it: m_StreamingDestinationsByPorts)
|
||||
if (it.second->DeleteStream (recvStreamID))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
RunnableClientDestination::RunnableClientDestination (const i2p::data::PrivateKeys& keys, bool isPublic, const std::map<std::string, std::string> * params):
|
||||
RunnableService ("Destination"),
|
||||
ClientDestination (GetIOService (), keys, isPublic, params)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue