Skip to content

Commit 77939f2

Browse files
committed
Fix uninitialized g_connman crash in Shutdown()
1 parent 7fcd61b commit 77939f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void Shutdown()
194194
// Because these depend on each-other, we make sure that neither can be
195195
// using the other before destroying them.
196196
UnregisterValidationInterface(peerLogic.get());
197-
g_connman->Stop();
197+
if(g_connman) g_connman->Stop();
198198
peerLogic.reset();
199199
g_connman.reset();
200200

0 commit comments

Comments
 (0)