mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
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);
|
||||
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