From e96c55bd98fb5a9a8eb94e565ed67d82bb02aed6 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 9 Apr 2014 18:17:13 -0400 Subject: [PATCH] fixed crash --- SSU.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SSU.cpp b/SSU.cpp index 3932b37f..efcf3a74 100644 --- a/SSU.cpp +++ b/SSU.cpp @@ -425,7 +425,6 @@ namespace ssu payload += 2; // our port LogPrint ("Our external address is ", ourIP.to_string (), ":", ourPort); i2p::context.UpdateAddress (ourIP.to_string ().c_str ()); - m_Server.DeleteSession (this); // we don't need this session anymore } else LogPrint ("Unexpected payload type ", (int)(header->flag >> 4)); @@ -532,9 +531,9 @@ namespace ssu // set connect timer m_Timer.expires_from_now (boost::posix_time::seconds(SSU_CONNECT_TIMEOUT)); m_Timer.async_wait (boost::bind (&SSUSession::HandleConnectTimer, - this, boost::asio::placeholders::error)); - SendRelayRequest (iTag, iKey); - } + this, boost::asio::placeholders::error)); + } + SendRelayRequest (iTag, iKey); } void SSUSession::WaitForIntroduction ()