Browse Source

don't delete HTTP connection twice

pull/113/head
orignal 10 years ago
parent
commit
bd13406f42
  1. 3
      HTTPServer.cpp

3
HTTPServer.cpp

@ -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…
Cancel
Save