[gnome-builder/wip/chergert/debugger: 44/89] mi2: return immediately from read cancellation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/debugger: 44/89] mi2: return immediately from read cancellation
- Date: Tue, 9 May 2017 01:09:18 +0000 (UTC)
commit 386d8f728a07cd807446e71f39c8bf9fcbfe3c7b
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]