MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / DeleteLocalDestination

Method DeleteLocalDestination

libi2pd_client/ClientContext.cpp:381–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

~SAMSingleSessionMethod · 0.80
~BOBDestinationMethod · 0.80

Calls 1

StopMethod · 0.45

Tested by

no test coverage detected