[gnome-builder/wip/chergert/debugger: 44/58] mi2: return immediately from read cancellation



commit 7e1b50a53a9fd6e707b0eafcb2cb9d87af6c1eb9
Author: Christian Hergert <chergert redhat com>
Date:   Sat Mar 25 15:37:27 2017 -0700

    mi2: return immediately from read cancellation

 contrib/mi2/mi2-input-stream.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/contrib/mi2/mi2-input-stream.c b/contrib/mi2/mi2-input-stream.c
index d2cbb3b..71f1c5c 100644
--- a/contrib/mi2/mi2-input-stream.c
+++ b/contrib/mi2/mi2-input-stream.c
@@ -111,6 +111,7 @@ mi2_input_stream_read_message_async (Mi2InputStream      *self,
 
   task = g_task_new (self, cancellable, callback, user_data);
   g_task_set_source_tag (task, mi2_input_stream_read_message_async);
+  g_task_set_return_on_cancel (task, TRUE);
 
   g_data_input_stream_read_line_async (G_DATA_INPUT_STREAM (self),
                                        G_PRIORITY_LOW,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]