p2p: only deinitialize what's been initialized in offline mode

This commit is contained in:
moneromooo-monero 2018-10-16 09:17:21 +00:00
parent 1afc1d0d26
commit 2d48861db7
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -655,10 +655,14 @@ namespace nodetool
{
kill();
m_peerlist.deinit();
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();
}
//-----------------------------------------------------------------------------------