aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-16 09:17:21 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-16 09:20:05 +0000
commit2d48861db78f6495a1b4bf07b6fe653c818a066f (patch)
tree88fd8a906751f15e2d27681944dd67556edcb187 /src/p2p/net_node.inl
parentMerge pull request #4502 (diff)
downloadmonero-2d48861db78f6495a1b4bf07b6fe653c818a066f.tar.xz
p2p: only deinitialize what's been initialized in offline mode
Diffstat (limited to 'src/p2p/net_node.inl')
-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 9390626a8..17de18972 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();
}
//-----------------------------------------------------------------------------------