[gnome-builder/wip/chergert/debugger: 105/134] mi2: handle end of stream
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/debugger: 105/134] mi2: handle end of stream
- Date: Fri, 31 Mar 2017 18:02:47 +0000 (UTC)
commit 8355e38764d192644a74e41cf31df2fdb3ef2862
Author: Christian Hergert <chergert redhat com>
Date: Sat Mar 25 18:03:40 2017 -0700
mi2: handle end of stream
contrib/mi2/mi2-client.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/contrib/mi2/mi2-client.c b/contrib/mi2/mi2-client.c
index d39302d..07a7227 100644
--- a/contrib/mi2/mi2-client.c
+++ b/contrib/mi2/mi2-client.c
@@ -509,7 +509,10 @@ mi2_client_read_loop_cb (GObject *object,
if (message == NULL)
{
- g_task_return_error (task, g_steal_pointer (&error));
+ if (error != NULL)
+ g_task_return_error (task, g_steal_pointer (&error));
+ else
+ g_task_return_boolean (task, TRUE);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]