diff --git a/gio/gmenuexporter.c b/gio/gmenuexporter.c index e57ad47f6..8509ffdb0 100644 --- a/gio/gmenuexporter.c +++ b/gio/gmenuexporter.c @@ -556,7 +556,8 @@ g_menu_exporter_name_vanished (GDBusConnection *connection, { GMenuExporter *exporter = user_data; - g_assert (exporter->connection == connection); + /* connection == NULL when we get called because the connection closed */ + g_assert (exporter->connection == connection || connection == NULL); g_hash_table_remove (exporter->remotes, name); }