MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Disconnect

Method Disconnect

src/i2p.cpp:482–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482void Session::Disconnect()
483{
484 if (m_control_sock) {
485 if (m_session_id.empty()) {
486 LogInfo("Destroying incomplete I2P SAM session");
487 } else {
488 LogInfo("Destroying I2P SAM session %s", m_session_id);
489 }
490 m_control_sock.reset();
491 }
492 m_session_id.clear();
493}
494} // namespace sam
495} // namespace i2p

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected