mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
don't delete HTTP connection twice
This commit is contained in:
parent
fbec753dcd
commit
bd13406f42
@ -514,6 +514,7 @@ namespace util
|
|||||||
|
|
||||||
void HTTPConnection::Terminate ()
|
void HTTPConnection::Terminate ()
|
||||||
{
|
{
|
||||||
|
if (!m_Stream || !m_Stream->IsOpen ()) return;
|
||||||
if (m_Stream)
|
if (m_Stream)
|
||||||
m_Stream->Close ();
|
m_Stream->Close ();
|
||||||
|
|
||||||
@ -521,7 +522,7 @@ namespace util
|
|||||||
m_Socket->get_io_service ().post ([=](void)
|
m_Socket->get_io_service ().post ([=](void)
|
||||||
{
|
{
|
||||||
i2p::stream::DeleteStream (m_Stream);
|
i2p::stream::DeleteStream (m_Stream);
|
||||||
delete this;
|
//delete this;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user