From 2e584dcb1f64d2fe9279051143e83dc3465d79b6 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 1 Feb 2018 11:48:03 +0000 Subject: p2p: do not try to connect to peers in offline mode --- src/p2p/net_node.inl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 152dba942..fee31f88d 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1151,6 +1151,7 @@ namespace nodetool template bool node_server::connections_maker() { + if (m_offline) return true; if (!connect_to_peerlist(m_exclusive_peers)) return false; if (!m_exclusive_peers.empty()) return true; @@ -1884,6 +1885,7 @@ namespace nodetool template bool node_server::gray_peerlist_housekeeping() { + if (m_offline) return true; if (!m_exclusive_peers.empty()) return true; peerlist_entry pe = AUTO_VAL_INIT(pe); -- cgit v1.2.3