summaryrefslogtreecommitdiff
path: root/daemon/gvfschannel.c
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2014-10-08 16:15:44 +0200
committerOndrej Holy <oholy@redhat.com>2014-10-09 11:15:35 +0200
commitace3084150b2d4ac8c6719061365c2bc9baf5edb (patch)
treeb3e1db192781084e629cfbc46474bae2cb6b5335 /daemon/gvfschannel.c
parent3abf2f64900c8dfb033af748c0aadc0cf61523c5 (diff)
downloadgvfs-ace3084150b2d4ac8c6719061365c2bc9baf5edb.tar.gz
gvfschannel: do not call close job if channel is blocked
We don't want to call new jobs when backend is force unmounted. https://bugzilla.gnome.org/show_bug.cgi?id=737842
Diffstat (limited to 'daemon/gvfschannel.c')
-rw-r--r--daemon/gvfschannel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/gvfschannel.c b/daemon/gvfschannel.c
index 88303d0f..418fc6d9 100644
--- a/daemon/gvfschannel.c
+++ b/daemon/gvfschannel.c
@@ -270,6 +270,9 @@ g_vfs_channel_connection_closed (GVfsChannel *channel)
return;
channel->priv->connection_closed = TRUE;
+ if (g_vfs_backend_get_block_requests (channel->priv->backend))
+ return;
+
if (channel->priv->current_job == NULL &&
channel->priv->backend_handle != NULL)
{