Browse Source

Fix uninitialized g_connman crash in Shutdown()

Github-Pull: #11326
Rebased-From: 77939f27f7
pull/1/head
MeshCollider 5 years ago committed by MarcoFalke
parent
commit
d570aa4290
  1. 2
      src/init.cpp

2
src/init.cpp

@ -197,7 +197,7 @@ void Shutdown() @@ -197,7 +197,7 @@ void Shutdown()
// Because these depend on each-other, we make sure that neither can be
// using the other before destroying them.
UnregisterValidationInterface(peerLogic.get());
g_connman->Stop();
if(g_connman) g_connman->Stop();
peerLogic.reset();
g_connman.reset();

Loading…
Cancel
Save