summaryrefslogtreecommitdiff
path: root/daemon/gvfsafpconnection.c
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2011-06-21 22:27:15 +0200
committerChristian Kellner <gicmo@gnome.org>2011-08-25 21:18:39 +0200
commit05d7f1efa82df76c43be64fac0884828d9ec5e60 (patch)
tree8c2c270746a6e0a6c21168a827372f1d86b44e58 /daemon/gvfsafpconnection.c
parent6ff326715eea874c3a2ff557acf3db8f44b05a53 (diff)
downloadgvfs-05d7f1efa82df76c43be64fac0884828d9ec5e60.tar.gz
afp: read the invisible attribute and set the fileinfo accordingly
Diffstat (limited to 'daemon/gvfsafpconnection.c')
-rw-r--r--daemon/gvfsafpconnection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/daemon/gvfsafpconnection.c b/daemon/gvfsafpconnection.c
index cb380447..c5a59b1e 100644
--- a/daemon/gvfsafpconnection.c
+++ b/daemon/gvfsafpconnection.c
@@ -550,6 +550,7 @@ dispatch_reply (GVfsAfpConnection *afp_connection)
/* Send back a tickle message */
req_data = g_slice_new0 (RequestData);
req_data->tickle = TRUE;
+ req_data->conn = afp_connection;
g_queue_push_head (priv->request_queue, req_data);
run_loop (afp_connection);
@@ -719,7 +720,9 @@ write_dsi_header_cb (GObject *object, GAsyncResult *res, gpointer user_data)
bytes_written = g_output_stream_write_finish (output, res, &err);
if (bytes_written == -1)
{
- request_data->reply_cb (request_data->conn, NULL, err, request_data->user_data);
+ if (request_data->reply_cb)
+ request_data->reply_cb (request_data->conn, NULL, err, request_data->user_data);
+
free_request_data (request_data);
g_error_free (err);
}