mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
fixed crash
This commit is contained in:
parent
d09bafa4a7
commit
e96c55bd98
1 changed files with 3 additions and 4 deletions
3
SSU.cpp
3
SSU.cpp
|
@ -425,7 +425,6 @@ namespace ssu
|
||||||
payload += 2; // our port
|
payload += 2; // our port
|
||||||
LogPrint ("Our external address is ", ourIP.to_string (), ":", ourPort);
|
LogPrint ("Our external address is ", ourIP.to_string (), ":", ourPort);
|
||||||
i2p::context.UpdateAddress (ourIP.to_string ().c_str ());
|
i2p::context.UpdateAddress (ourIP.to_string ().c_str ());
|
||||||
m_Server.DeleteSession (this); // we don't need this session anymore
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
LogPrint ("Unexpected payload type ", (int)(header->flag >> 4));
|
LogPrint ("Unexpected payload type ", (int)(header->flag >> 4));
|
||||||
|
@ -533,8 +532,8 @@ namespace ssu
|
||||||
m_Timer.expires_from_now (boost::posix_time::seconds(SSU_CONNECT_TIMEOUT));
|
m_Timer.expires_from_now (boost::posix_time::seconds(SSU_CONNECT_TIMEOUT));
|
||||||
m_Timer.async_wait (boost::bind (&SSUSession::HandleConnectTimer,
|
m_Timer.async_wait (boost::bind (&SSUSession::HandleConnectTimer,
|
||||||
this, boost::asio::placeholders::error));
|
this, boost::asio::placeholders::error));
|
||||||
SendRelayRequest (iTag, iKey);
|
|
||||||
}
|
}
|
||||||
|
SendRelayRequest (iTag, iKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSUSession::WaitForIntroduction ()
|
void SSUSession::WaitForIntroduction ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue