aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorMeshCollider <dobsonsa68@gmail.com>2017-09-14 15:18:55 +1200
committerMeshCollider <dobsonsa68@gmail.com>2017-09-14 16:47:10 +1200
commit77939f27f7dc42640ebfb9fe52490a2ddacc3ad4 (patch)
treeeb85afae0c505dfaab6a66822e131e685d07fad3 /src/init.cpp
parent7fcd61b2613c211bb042a82a889655178be6a212 (diff)
Fix uninitialized g_connman crash in Shutdown()
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index a997f9740c..6b9699213f 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -194,7 +194,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();