mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-13 08:17:38 +01:00
fix #1363 try connect in SSU's thread
This commit is contained in:
parent
3e932a55f4
commit
13732ac333
1 changed files with 4 additions and 1 deletions
|
@ -562,7 +562,10 @@ namespace transport
|
||||||
{
|
{
|
||||||
auto addr = router->GetSSUV6Address ();
|
auto addr = router->GetSSUV6Address ();
|
||||||
if (addr)
|
if (addr)
|
||||||
|
m_SSUServer->GetServiceV6 ().post ([this, router, addr]
|
||||||
|
{
|
||||||
m_SSUServer->CreateDirectSession (router, { addr->host, (uint16_t)addr->port }, false);
|
m_SSUServer->CreateDirectSession (router, { addr->host, (uint16_t)addr->port }, false);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue