mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-17 21:26:04 +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 ()
|
||||
{
|
||||
if (!m_Stream || !m_Stream->IsOpen ()) return;
|
||||
if (m_Stream)
|
||||
m_Stream->Close ();
|
||||
|
||||
@ -521,7 +522,7 @@ namespace util
|
||||
m_Socket->get_io_service ().post ([=](void)
|
||||
{
|
||||
i2p::stream::DeleteStream (m_Stream);
|
||||
delete this;
|
||||
//delete this;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user