[gvfs] sftp: Do not call force unmount twice
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] sftp: Do not call force unmount twice
- Date: Fri, 6 Jan 2017 16:18:11 +0000 (UTC)
commit df8a5dfaf0abcb915b5fe054ccf52180cbcba275
Author: Ondrej Holy <oholy redhat com>
Date: Wed Jan 4 10:33:23 2017 +0100
sftp: Do not call force unmount twice
g_vfs_backend_force_unmount() might be called twice if command sending
fails. Use fail_jobs_and_unmount wrapper instead of calling _force_unmount()
directly.
https://bugzilla.gnome.org/show_bug.cgi?id=776824
daemon/gvfsbackendsftp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c
index 7c2eb12..45c0009 100644
--- a/daemon/gvfsbackendsftp.c
+++ b/daemon/gvfsbackendsftp.c
@@ -1514,7 +1514,7 @@ send_command_data (GObject *source_object,
if (res <= 0)
{
g_warning ("Error sending command");
- g_vfs_backend_force_unmount ((GVfsBackend*)conn->op_backend);
+ fail_jobs_and_unmount (conn->op_backend, NULL);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]