From 13732ac33369df365132eb43ed9146221c69ec50 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 14 Jun 2019 15:43:03 -0400 Subject: [PATCH] fix #1363 try connect in SSU's thread --- libi2pd/Transports.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libi2pd/Transports.cpp b/libi2pd/Transports.cpp index b76d9312..a2783f6c 100644 --- a/libi2pd/Transports.cpp +++ b/libi2pd/Transports.cpp @@ -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); + }); } } }