diff options
| author | MeshCollider <[email protected]> | 2017-09-14 15:18:55 +1200 |
|---|---|---|
| committer | MeshCollider <[email protected]> | 2017-09-14 16:47:10 +1200 |
| commit | 77939f27f7dc42640ebfb9fe52490a2ddacc3ad4 (patch) | |
| tree | eb85afae0c505dfaab6a66822e131e685d07fad3 /src/init.cpp | |
| parent | Merge #10753: test: Check RPC argument mapping (diff) | |
| download | discoin-77939f27f7dc42640ebfb9fe52490a2ddacc3ad4.tar.xz discoin-77939f27f7dc42640ebfb9fe52490a2ddacc3ad4.zip | |
Fix uninitialized g_connman crash in Shutdown()
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index a997f9740..6b9699213 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(); |