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

36fa01f net: only delete CConnman if it's been created (Cory Fields)
This commit is contained in:
Wladimir J. van der Laan 2016-09-14 10:16:18 +02:00
commit 881d7eaf29
No known key found for this signature in database
GPG key ID: 74810B012346C9A6
2 changed files with 1 additions and 1 deletions

View file

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

View file

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