aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-01 11:48:03 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-01 20:18:30 +0000
commit2e584dcb1f64d2fe9279051143e83dc3465d79b6 (patch)
treed0584588c2661aca2635cca3378b78464a8c1ee1
parentMerge pull request #3198 (diff)
downloadmonero-2e584dcb1f64d2fe9279051143e83dc3465d79b6.tar.xz
p2p: do not try to connect to peers in offline mode
Diffstat (limited to '')
-rw-r--r--src/p2p/net_node.inl2
1 files changed, 2 insertions, 0 deletions
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<class t_payload_net_handler>
bool node_server<t_payload_net_handler>::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<class t_payload_net_handler>
bool node_server<t_payload_net_handler>::gray_peerlist_housekeeping()
{
+ if (m_offline) return true;
if (!m_exclusive_peers.empty()) return true;
peerlist_entry pe = AUTO_VAL_INIT(pe);