From b0d8ae6d65509a79aced5a1099123928761263e8 Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 13 Dec 2023 14:02:32 +0100 Subject: [PATCH] ExtensionSystem: Don't forget that we are shutting down This apparently canh be triggered from a delayed LanguangeClientManager::deleteClient() when the Client checks isShuttingDown in its destructor. The triggering code path probably should change, but this here avoids the crash. Change-Id: Ic39640b5465bcf14645510b925e00b9977351eac Reviewed-by: Eike Ziller --- src/libs/extensionsystem/pluginmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/extensionsystem/pluginmanager.cpp b/src/libs/extensionsystem/pluginmanager.cpp index c8c09ec5c27..3f9800a9505 100644 --- a/src/libs/extensionsystem/pluginmanager.cpp +++ b/src/libs/extensionsystem/pluginmanager.cpp @@ -1938,7 +1938,7 @@ bool PluginManager::isInitializationDone() bool PluginManager::isShuttingDown() { - return d->m_isShuttingDown; + return !d || d->m_isShuttingDown; } /*!