Browse Source

inseer incoming session into sessions list

pull/1833/head
orignal 2 years ago
parent
commit
126dc0ebe0
  1. 3
      libi2pd/Transports.cpp

3
libi2pd/Transports.cpp

@ -716,7 +716,8 @@ namespace transport
session->SendI2NPMessages ({ CreateDatabaseStoreMsg () }); // send DatabaseStore session->SendI2NPMessages ({ CreateDatabaseStoreMsg () }); // send DatabaseStore
auto ts = i2p::util::GetSecondsSinceEpoch (); auto ts = i2p::util::GetSecondsSinceEpoch ();
std::unique_lock<std::mutex> l(m_PeersMutex); std::unique_lock<std::mutex> 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);
} }
}); });
} }

Loading…
Cancel
Save