[gvfs] gvfschannel: do not call close job if channel is blocked
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] gvfschannel: do not call close job if channel is blocked
- Date: Thu, 9 Oct 2014 09:18:35 +0000 (UTC)
commit ace3084150b2d4ac8c6719061365c2bc9baf5edb
Author: Ondrej Holy <oholy redhat com>
Date: Wed Oct 8 16:15:44 2014 +0200
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
daemon/gvfschannel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfschannel.c b/daemon/gvfschannel.c
index 88303d0..418fc6d 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]