Browse Source

fix #1363 try connect in SSU's thread

pull/1374/head
orignal 5 years ago
parent
commit
13732ac333
  1. 5
      libi2pd/Transports.cpp

5
libi2pd/Transports.cpp

@ -562,7 +562,10 @@ namespace transport @@ -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);
});
}
}
}

Loading…
Cancel
Save