mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02: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:
parent
fa7caf6d91
commit
36fa01f217
2 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,6 @@ void Shutdown()
|
|||
pwalletMain->Flush(false);
|
||||
#endif
|
||||
MapPort(false);
|
||||
g_connman->Stop();
|
||||
g_connman.reset();
|
||||
|
||||
StopTorControl();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue