mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
net: only delete CConnman if it's been created
In the case of (for example) an already-running bitcoind, the shutdown sequence begins before CConnman has been created, leading to a null-pointer dereference when g_connman->Stop() is called. Instead, Just let the CConnman dtor take care of stopping.
This commit is contained in:
@@ -2205,6 +2205,7 @@ void CConnman::DeleteNode(CNode* pnode)
|
||||
|
||||
CConnman::~CConnman()
|
||||
{
|
||||
Stop();
|
||||
}
|
||||
|
||||
size_t CConnman::GetAddressCount() const
|
||||
|
||||
Reference in New Issue
Block a user