Commit 7a92f4b3 authored by Christian Hergert's avatar Christian Hergert
Browse files

config: protect against events during shutdown

I'm not sure how we're hitting this, but there are cases during shutdown
where we get into a sort of indirect life-cycle issue here. Possibly
the object gets invalidated during emission without our closure being
parent f07d2682
......@@ -232,11 +232,12 @@ ide_configuration_runtime_manager_items_changed (IdeConfiguration *self,
gboolean runtime_ready;
g_assert (IDE_IS_CONFIGURATION (self));
g_assert (IDE_IS_RUNTIME_MANAGER (runtime_manager));
if (ide_object_is_unloading (IDE_OBJECT (self)))
g_assert (IDE_IS_RUNTIME_MANAGER (runtime_manager));
runtime = ide_runtime_manager_get_runtime (runtime_manager, priv->runtime_id);
runtime_ready = !!runtime;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment