don't delete HTTP connection twice

This commit is contained in:
orignal 2014-11-30 18:19:32 -05:00
parent fbec753dcd
commit bd13406f42

View File

@ -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;
});
}