main: use xfer_task instead of task or self

Another patch to rename variable and keep consistency across
channel-main. Let's avoid task which is common for GTask and self for
non SpiceMainChannel objects

Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
Victor Toso 2016-06-22 18:41:06 +02:00
parent f6072e678e
commit 827148c19a

View File

@ -1880,20 +1880,20 @@ static void file_xfer_data_flushed_cb(GObject *source_object,
GAsyncResult *res,
gpointer user_data)
{
SpiceFileTransferTask *self = user_data;
SpiceFileTransferTask *xfer_task = user_data;
SpiceMainChannel *channel = (SpiceMainChannel *)source_object;
GError *error = NULL;
file_xfer_flush_finish(channel, res, &error);
if (error) {
spice_file_transfer_task_completed(self, error);
spice_file_transfer_task_completed(xfer_task, error);
return;
}
file_transfer_operation_send_progress(self);
file_transfer_operation_send_progress(xfer_task);
/* Read more data */
spice_file_transfer_task_read_async(self, file_xfer_read_async_cb, NULL);
spice_file_transfer_task_read_async(xfer_task, file_xfer_read_async_cb, NULL);
}
static void file_xfer_queue_msg_to_agent(SpiceMainChannel *channel,