summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2016-07-26 14:47:43 +0200
committerFabiano FidĂȘncio <fidencio@redhat.com>2016-07-29 14:29:45 +0200
commit9f91b03bc4c3c58e77169dfe71a8ec7525be5118 (patch)
tree5ff186f8b286e3ef2fdabe36609265ed6daded69
parent85a96f881b72a89fbe301a20565717bf929d3af2 (diff)
vmcstream: set the right result for the task
This bogus code was introduced when switching to GTask API. Seems that while writing those patches I just overlooked this part and set the wrong result for the task. As part of the problems introduced (and now fixed) you can notice that no output stream was being sent to the guest. Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
-rw-r--r--src/vmcstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmcstream.c b/src/vmcstream.c
index c536f71..ffb1ba4 100644
--- a/src/vmcstream.c
+++ b/src/vmcstream.c
@@ -411,7 +411,7 @@ write_cb(GObject *source_object,
{
GTask *task = user_data;
- g_task_return_pointer(task, g_object_ref(task), g_object_unref);
+ g_task_return_pointer(task, g_object_ref(res), g_object_unref);
g_object_unref(task);
}