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

Method disconnected_cb

src/torcontrol.cpp:732–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732void TorController::disconnected_cb(TorControlConnection& _conn)
733{
734 // Stop advertising service when disconnected
735 if (m_service.IsValid())
736 RemoveLocal(m_service);
737 m_service = CService();
738 if (!m_reconnect)
739 return;
740
741 LogDebug(BCLog::TOR, "Not connected to Tor control port %s, will retry", m_tor_control_center);
742 _conn.Disconnect();
743}
744
745fs::path TorController::GetPrivateKeyFile()
746{

Callers

nothing calls this directly

Calls 4

RemoveLocalFunction · 0.85
CServiceClass · 0.85
IsValidMethod · 0.45
DisconnectMethod · 0.45

Tested by

no test coverage detected