From 126dc0ebe061f1d7fb1a5bd435a1a71ac7ba48b4 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 28 Dec 2022 16:47:50 -0500 Subject: [PATCH] inseer incoming session into sessions list --- libi2pd/Transports.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libi2pd/Transports.cpp b/libi2pd/Transports.cpp index c571d45a..56fa4f39 100644 --- a/libi2pd/Transports.cpp +++ b/libi2pd/Transports.cpp @@ -716,7 +716,8 @@ namespace transport session->SendI2NPMessages ({ CreateDatabaseStoreMsg () }); // send DatabaseStore auto ts = i2p::util::GetSecondsSinceEpoch (); std::unique_lock l(m_PeersMutex); - m_Peers.insert (std::make_pair (ident, Peer{ nullptr, ts })); + auto it = m_Peers.insert (std::make_pair (ident, Peer{ nullptr, ts })).first; + it->second.sessions.push_back (session); } }); }