Commit 212ffcc5 authored by Allison Karlitskaya's avatar Allison Karlitskaya

GMenuExporter: allow NULL bus on _name_vanished

GBusNameVanishedCallback is called with a NULL GDBusConnection in the
case that the connection has vanished.  We were doing an assert to
verify that it was the same as we had exported the menu on and that
assert was failing.
parent 2002479c
......@@ -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);
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