Merge pull request #4612

2d48861d p2p: only deinitialize what's been initialized in offline mode (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-10-26 22:38:03 +02:00
commit ecc690a613
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -655,10 +655,14 @@ namespace nodetool
{ {
kill(); kill();
m_peerlist.deinit(); m_peerlist.deinit();
m_net_server.deinit_server();
// remove UPnP port mapping if (!m_offline)
if(!m_no_igd) {
delete_upnp_port_mapping(m_listening_port); m_net_server.deinit_server();
// remove UPnP port mapping
if(!m_no_igd)
delete_upnp_port_mapping(m_listening_port);
}
return store_config(); return store_config();
} }
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------