mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
p2p: only deinitialize what's been initialized in offline mode
This commit is contained in:
parent
1afc1d0d26
commit
2d48861db7
@ -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();
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user