mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Stop g_connman first before deleting it (#2734)
This commit is contained in:
parent
9e233f391d
commit
f868fbc787
@ -256,6 +256,10 @@ void PrepareShutdown()
|
||||
MapPort(false);
|
||||
UnregisterValidationInterface(peerLogic.get());
|
||||
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();
|
||||
|
||||
if (!fLiteMode && !fRPCInWarmup) {
|
||||
|
Loading…
Reference in New Issue
Block a user