We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5b9f99 commit ecdb75aCopy full SHA for ecdb75a
src/init.cpp
@@ -232,7 +232,10 @@ void PrepareShutdown()
232
#endif
233
StopMapPort();
234
235
- UnregisterValidationInterface(peerLogic.get());
+ // Because these depend on each-other, we make sure that neither can be
236
+ // using the other before destroying them.
237
+ if (peerLogic) UnregisterValidationInterface(peerLogic.get());
238
+ if (g_connman) g_connman->Stop();
239
peerLogic.reset();
240
g_connman.reset();
241
0 commit comments