mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
delete stream from inside
This commit is contained in:
parent
38ee813e41
commit
4e54fbec08
7 changed files with 17 additions and 19 deletions
|
@ -516,12 +516,10 @@ namespace util
|
|||
{
|
||||
if (!m_Stream) return;
|
||||
m_Socket->close ();
|
||||
if (m_Stream->IsOpen ())
|
||||
m_Stream->Close ();
|
||||
m_Stream->Close ();
|
||||
|
||||
m_Socket->get_io_service ().post ([=](void)
|
||||
{
|
||||
i2p::stream::DeleteStream (m_Stream);
|
||||
m_Stream.reset ();
|
||||
m_Stream = nullptr;
|
||||
// delete this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue