mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
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:
commit
881d7eaf29
@ -200,7 +200,6 @@ void Shutdown()
|
|||||||
pwalletMain->Flush(false);
|
pwalletMain->Flush(false);
|
||||||
#endif
|
#endif
|
||||||
MapPort(false);
|
MapPort(false);
|
||||||
g_connman->Stop();
|
|
||||||
g_connman.reset();
|
g_connman.reset();
|
||||||
|
|
||||||
StopTorControl();
|
StopTorControl();
|
||||||
|
@ -2205,6 +2205,7 @@ void CConnman::DeleteNode(CNode* pnode)
|
|||||||
|
|
||||||
CConnman::~CConnman()
|
CConnman::~CConnman()
|
||||||
{
|
{
|
||||||
|
Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t CConnman::GetAddressCount() const
|
size_t CConnman::GetAddressCount() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user