send RouterInfo from NTCP2Server's thread

This commit is contained in:
orignal 2018-08-22 12:33:43 -04:00
parent 65cf14bfce
commit b259ee89aa

View File

@ -1005,7 +1005,7 @@ namespace transport
void NTCP2Session::SendLocalRouterInfo ()
{
if (!IsOutgoing ()) // we send it in SessionConfirmed
SendRouterInfo ();
m_Server.GetService ().post (std::bind (&NTCP2Session::SendRouterInfo, shared_from_this ()));
}
NTCP2Server::NTCP2Server ():