fix #1363 try connect in SSU's thread

This commit is contained in:
orignal 2019-06-14 15:43:03 -04:00
parent 3e932a55f4
commit 13732ac333

View File

@ -562,7 +562,10 @@ namespace transport
{
auto addr = router->GetSSUV6Address ();
if (addr)
m_SSUServer->CreateDirectSession (router, { addr->host, (uint16_t)addr->port }, false);
m_SSUServer->GetServiceV6 ().post ([this, router, addr]
{
m_SSUServer->CreateDirectSession (router, { addr->host, (uint16_t)addr->port }, false);
});
}
}
}