| 1217 | } |
| 1218 | |
| 1219 | std::shared_ptr<I2CPSession> I2CPServer::FindSessionByIdentHash (const i2p::data::IdentHash& ident) const |
| 1220 | { |
| 1221 | for (const auto& it: m_Sessions) |
| 1222 | { |
| 1223 | if (it.second) |
| 1224 | { |
| 1225 | auto dest = it.second->GetDestination (); |
| 1226 | if (dest && dest->GetIdentHash () == ident) |
| 1227 | return it.second; |
| 1228 | } |
| 1229 | } |
| 1230 | return nullptr; |
| 1231 | } |
| 1232 | } |
| 1233 | } |
no test coverage detected