mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
GDBus: make use of reliable async cancellation
Call g_simple_async_result_set_check_cancellable() after all GSimpleAsyncResult creation in order to take advantage of the new reliable cancellation feature. The guarantee of reliable cancellation fixes a bug in dbusmenu (which was already assuming that cancellation was reliable). See this bug: https://bugs.launchpad.net/ubuntu/+source/libdbusmenu/+bug/953562 https://bugzilla.gnome.org/show_bug.cgi?id=672013 Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
committed by
David Zeuthen
parent
1c42b6b092
commit
e3c7fdd7a4
@@ -856,6 +856,7 @@ g_dbus_address_get_stream (const gchar *address,
|
||||
callback,
|
||||
user_data,
|
||||
g_dbus_address_get_stream);
|
||||
g_simple_async_result_set_check_cancellable (res, cancellable);
|
||||
data = g_new0 (GetStreamData, 1);
|
||||
data->address = g_strdup (address);
|
||||
g_simple_async_result_set_op_res_gpointer (res,
|
||||
|
Reference in New Issue
Block a user