mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
show streams per local destination
This commit is contained in:
parent
2ab597be20
commit
6d6c81bf8b
4 changed files with 22 additions and 8 deletions
|
@ -70,15 +70,7 @@ namespace stream
|
|||
|
||||
StreamingDestination::~StreamingDestination ()
|
||||
{
|
||||
{
|
||||
std::unique_lock<std::mutex> l(m_StreamsMutex);
|
||||
for (auto it: m_Streams)
|
||||
delete it.second;
|
||||
m_Streams.clear ();
|
||||
}
|
||||
Stop ();
|
||||
if (m_Pool)
|
||||
i2p::tunnel::tunnels.DeleteTunnelPool (m_Pool);
|
||||
delete m_LeaseSet;
|
||||
}
|
||||
|
||||
|
@ -95,6 +87,17 @@ namespace stream
|
|||
|
||||
void StreamingDestination::Stop ()
|
||||
{
|
||||
{
|
||||
std::unique_lock<std::mutex> l(m_StreamsMutex);
|
||||
for (auto it: m_Streams)
|
||||
delete it.second;
|
||||
m_Streams.clear ();
|
||||
}
|
||||
if (m_Pool)
|
||||
{
|
||||
i2p::tunnel::tunnels.DeleteTunnelPool (m_Pool);
|
||||
m_Pool = nullptr;
|
||||
}
|
||||
m_IsRunning = false;
|
||||
m_Service.stop ();
|
||||
if (m_Thread)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue