Browse Source

Merge #8715: net: only delete CConnman if it's been created

36fa01f net: only delete CConnman if it's been created (Cory Fields)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
881d7eaf29
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 1
      src/init.cpp
  2. 1
      src/net.cpp

1
src/init.cpp

@ -200,7 +200,6 @@ void Shutdown() @@ -200,7 +200,6 @@ void Shutdown()
pwalletMain->Flush(false);
#endif
MapPort(false);
g_connman->Stop();
g_connman.reset();
StopTorControl();

1
src/net.cpp

@ -2205,6 +2205,7 @@ void CConnman::DeleteNode(CNode* pnode) @@ -2205,6 +2205,7 @@ void CConnman::DeleteNode(CNode* pnode)
CConnman::~CConnman()
{
Stop();
}
size_t CConnman::GetAddressCount() const

Loading…
Cancel
Save