aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-10-26 22:38:03 +0200
committerRiccardo Spagni <ric@spagni.net>2018-10-26 22:38:03 +0200
commitecc690a61388ba0c7f00ec89db8b5837f3e0330d (patch)
tree9699821d58707172a80d998b1e0b07e599316bfd /src/p2p
parentMerge pull request #4609 (diff)
parentp2p: only deinitialize what's been initialized in offline mode (diff)
downloadmonero-ecc690a61388ba0c7f00ec89db8b5837f3e0330d.tar.xz
Merge pull request #4612
2d48861d p2p: only deinitialize what's been initialized in offline mode (moneromooo-monero)
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/net_node.inl12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index 705c4da4e..a61b6107f 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -655,10 +655,14 @@ namespace nodetool
{
kill();
m_peerlist.deinit();
- m_net_server.deinit_server();
- // remove UPnP port mapping
- if(!m_no_igd)
- delete_upnp_port_mapping(m_listening_port);
+
+ if (!m_offline)
+ {
+ m_net_server.deinit_server();
+ // remove UPnP port mapping
+ if(!m_no_igd)
+ delete_upnp_port_mapping(m_listening_port);
+ }
return store_config();
}
//-----------------------------------------------------------------------------------