| 730 | } |
| 731 | |
| 732 | void 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 | |
| 745 | fs::path TorController::GetPrivateKeyFile() |
| 746 | { |
nothing calls this directly
no test coverage detected