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



commit 94dd0239de10308e137a259fb6be7309c8942bc7
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]