move WaitForConnect away from constructor

This commit is contained in:
orignal 2014-11-24 11:18:12 -05:00
parent 97656e7349
commit 1a0957b571
3 changed files with 10 additions and 2 deletions

View file

@ -135,6 +135,7 @@ namespace transport
if (!session)
{
session = new SSUSession (*this, from);
session->WaitForConnect ();
m_Sessions[from] = session;
LogPrint ("New SSU session from ", from.address ().to_string (), ":", from.port (), " created");
}