|
|
|
@ -491,10 +491,11 @@ namespace ssu
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SSUSession::Connect ()
|
|
|
|
|
{
|
|
|
|
|
if (m_State == eSessionStateUnknown)
|
|
|
|
|
{
|
|
|
|
|
if (m_Server)
|
|
|
|
|
{
|
|
|
|
|
if (!m_ConnectTimer)
|
|
|
|
|
m_ConnectTimer = new boost::asio::deadline_timer (m_Server->GetService ());
|
|
|
|
|
m_ConnectTimer->expires_from_now (boost::posix_time::seconds(SSU_CONNECT_TIMEOUT));
|
|
|
|
|
m_ConnectTimer->async_wait (boost::bind (&SSUSession::HandleConnectTimer,
|
|
|
|
@ -502,6 +503,7 @@ namespace ssu
|
|
|
|
|
}
|
|
|
|
|
SendSessionRequest ();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SSUSession::HandleConnectTimer (const boost::system::error_code& ecode)
|
|
|
|
|
{
|
|
|
|
|