summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2018-05-26 08:16:02 +0200
committerOndrej Holy <oholy@redhat.com>2018-05-26 08:23:39 +0200
commit38831e4ea149a0b4731d123c63d8b493d30ad0be (patch)
tree2a71f2db3e29666f199960d8922b2b137e445716
parentf858073c379d4617fd247c3948d0c65ff03be8be (diff)
downloadgvfs-wip/oholy/udisks2-timeouts-when-stopping.tar.gz
udisks2: Fix crashes caused by missing source tagwip/oholy/udisks2-timeouts-when-stopping
GAsyncReadyCallback is never called from g_drive_stop, because source_tag is not set, but checked. This obviously causes issues for client applications. Add missing source_tag. Closes: https://gitlab.gnome.org/GNOME/gvfs/issues/1
-rw-r--r--monitor/udisks2/gvfsudisks2drive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor/udisks2/gvfsudisks2drive.c b/monitor/udisks2/gvfsudisks2drive.c
index 52e9b75e..87656688 100644
--- a/monitor/udisks2/gvfsudisks2drive.c
+++ b/monitor/udisks2/gvfsudisks2drive.c
@@ -915,6 +915,7 @@ gvfs_udisks2_drive_stop (GDrive *_drive,
GTask *task;
task = g_task_new (drive, cancellable, callback, user_data);
+ g_task_set_source_tag (task, gvfs_udisks2_drive_stop);
/* This information is needed in GVfsDdisks2Volume when apps have
* open files on the device ... we need to know if the button should