[gnome-builder/wip/chergert/debugger: 51/86] mi2: handle end of stream
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/debugger: 51/86] mi2: handle end of stream
- Date: Sun, 9 Apr 2017 02:43:09 +0000 (UTC)
commit 7e29db5aa38449f07fe1cf8c26270147c0a45442
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]