From 36fa01f217fbc32afb90314fd257650c71a47045 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Tue, 13 Sep 2016 14:42:55 -0400 Subject: net: only delete CConnman if it's been created In the case of (for example) an already-running bitcoind, the shutdown sequence begins before CConnman has been created, leading to a null-pointer dereference when g_connman->Stop() is called. Instead, Just let the CConnman dtor take care of stopping. --- src/init.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index e9552da67d..8d1e330a05 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -200,7 +200,6 @@ void Shutdown() pwalletMain->Flush(false); #endif MapPort(false); - g_connman->Stop(); g_connman.reset(); StopTorControl(); -- cgit v1.2.3