Stop g_connman first before deleting it (#2734)
This commit is contained in:
parent
9eb0ca7040
commit
f971da8318
@ -255,6 +255,10 @@ void PrepareShutdown()
|
|||||||
MapPort(false);
|
MapPort(false);
|
||||||
UnregisterValidationInterface(peerLogic.get());
|
UnregisterValidationInterface(peerLogic.get());
|
||||||
peerLogic.reset();
|
peerLogic.reset();
|
||||||
|
if (g_connman) {
|
||||||
|
// make sure to stop all threads before g_connman is reset to nullptr as these threads might still be accessing it
|
||||||
|
g_connman->Stop();
|
||||||
|
}
|
||||||
g_connman.reset();
|
g_connman.reset();
|
||||||
|
|
||||||
if (!fLiteMode && !fRPCInWarmup) {
|
if (!fLiteMode && !fRPCInWarmup) {
|
||||||
|
Loading…
Reference in New Issue
Block a user