mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
move WaitForConnect away from constructor
This commit is contained in:
parent
97656e7349
commit
1a0957b571
3 changed files with 10 additions and 2 deletions
|
@ -21,8 +21,6 @@ namespace transport
|
|||
m_Data (*this), m_NumSentBytes (0), m_NumReceivedBytes (0)
|
||||
{
|
||||
m_CreationTime = i2p::util::GetSecondsSinceEpoch ();
|
||||
if (!router) // incoming session
|
||||
ScheduleConnectTimer ();
|
||||
}
|
||||
|
||||
SSUSession::~SSUSession ()
|
||||
|
@ -701,6 +699,14 @@ namespace transport
|
|||
}
|
||||
}
|
||||
|
||||
void SSUSession::WaitForConnect ()
|
||||
{
|
||||
if (!m_RemoteRouter) // incoming session
|
||||
ScheduleConnectTimer ();
|
||||
else
|
||||
LogPrint (eLogError, "SSU wait for connect for outgoing session");
|
||||
}
|
||||
|
||||
void SSUSession::ScheduleConnectTimer ()
|
||||
{
|
||||
m_Timer.cancel ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue