mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
create/delete stream per destination only
This commit is contained in:
parent
341e860caa
commit
18d6a2c70e
6 changed files with 7 additions and 33 deletions
|
@ -38,7 +38,7 @@ namespace stream
|
|||
if (m_Stream)
|
||||
{
|
||||
m_Stream->Close ();
|
||||
DeleteStream (m_Stream);
|
||||
m_Owner->GetLocalDestination ()->DeleteStream (m_Stream);
|
||||
m_Stream = nullptr;
|
||||
}
|
||||
m_Socket->close ();
|
||||
|
@ -114,7 +114,7 @@ namespace stream
|
|||
if (ecode != boost::asio::error::operation_aborted)
|
||||
{
|
||||
if (m_Stream) m_Stream->Close ();
|
||||
DeleteStream (m_Stream);
|
||||
m_Owner->GetLocalDestination ()->DeleteStream (m_Stream);
|
||||
m_Stream = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue