mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-02 13:28:09 +01:00
Fix uninitialized g_connman crash in Shutdown()
Github-Pull: #11326
Rebased-From: 77939f27f7
This commit is contained in:
@@ -197,7 +197,7 @@ void Shutdown()
|
|||||||
// Because these depend on each-other, we make sure that neither can be
|
// Because these depend on each-other, we make sure that neither can be
|
||||||
// using the other before destroying them.
|
// using the other before destroying them.
|
||||||
UnregisterValidationInterface(peerLogic.get());
|
UnregisterValidationInterface(peerLogic.get());
|
||||||
g_connman->Stop();
|
if(g_connman) g_connman->Stop();
|
||||||
peerLogic.reset();
|
peerLogic.reset();
|
||||||
g_connman.reset();
|
g_connman.reset();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user