Fix uninitialized g_connman crash in Shutdown()

Github-Pull: #11326
Rebased-From: 77939f27f7
This commit is contained in:
MeshCollider 2017-09-14 15:18:55 +12:00 committed by MarcoFalke
parent 0a5477c7e3
commit d570aa4290
1 changed files with 1 additions and 1 deletions

View File

@ -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();