| 1050 | } |
| 1051 | |
| 1052 | void Transports::UpdatePeerParams (std::shared_ptr<const i2p::data::RouterInfo> r) |
| 1053 | { |
| 1054 | if (!r) return; |
| 1055 | std::shared_ptr<Peer> peer; |
| 1056 | { |
| 1057 | std::lock_guard<std::mutex> l(m_PeersMutex); |
| 1058 | auto it = m_Peers.find (r->GetIdentHash ()); |
| 1059 | if (it != m_Peers.end ()) |
| 1060 | peer = it->second; |
| 1061 | } |
| 1062 | if (peer) |
| 1063 | peer->UpdateParams (r); |
| 1064 | } |
| 1065 | |
| 1066 | void Transports::HandlePeerCleanupTimer (const boost::system::error_code& ecode) |
| 1067 | { |
no test coverage detected