| 379 | } |
| 380 | |
| 381 | void ClientContext::DeleteLocalDestination (std::shared_ptr<ClientDestination> destination) |
| 382 | { |
| 383 | if (!destination) return; |
| 384 | bool removed = false; |
| 385 | { |
| 386 | std::unique_lock<std::mutex> l(m_DestinationsMutex); |
| 387 | removed = m_Destinations.erase (destination->GetIdentHash ()) > 0; |
| 388 | } |
| 389 | if (removed) |
| 390 | destination->Stop (); |
| 391 | } |
| 392 | |
| 393 | bool ClientContext::ReplaceLocalDestinationHash (const i2p::data::IdentHash& oldIdentHash, const i2p::data::IdentHash& newIdentHash) |
| 394 | { |
no test coverage detected