mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-24 09:56:35 +02:00
don't delete HTTP connection twice
This commit is contained in:
parent
fbec753dcd
commit
bd13406f42
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue