mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 19:22:11 +01:00
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. https://bugzilla.gnome.org/show_bug.cgi?id=685995
This commit is contained in:
parent
ce92bea735
commit
3766b7b5cd
@ -556,7 +556,8 @@ g_menu_exporter_name_vanished (GDBusConnection *connection,
|
|||||||
{
|
{
|
||||||
GMenuExporter *exporter = user_data;
|
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);
|
g_hash_table_remove (exporter->remotes, name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user