[gnome-builder/wip/chergert/debugger: 50/58] mi2: handle end of stream
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/debugger: 50/58] mi2: handle end of stream
- Date: Sun, 26 Mar 2017 07:25:33 +0000 (UTC)
commit a7fc99e6f5ca7bd5d7228c4af2eabe2b5c4c8dc5
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]