[gnome-builder/wip/chergert/debugger: 100/134] mi2: test stop_listening() for failures



commit 8323819e67792c801fb60b1bfc8e8fb9cf7e66df
Author: Christian Hergert <chergert redhat com>
Date:   Sat Mar 25 15:37:53 2017 -0700

    mi2: test stop_listening() for failures

 contrib/mi2/test-client.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/contrib/mi2/test-client.c b/contrib/mi2/test-client.c
index 0656b86..2bc9354 100644
--- a/contrib/mi2/test-client.c
+++ b/contrib/mi2/test-client.c
@@ -221,7 +221,9 @@ on_breakpoint_removed (Mi2Client *client,
 {
   g_print ("breakpoint removed: %d\n", breakpoint_id);
 
-  g_main_loop_quit (main_loop);
+  mi2_client_stop_listening (client);
+
+  g_timeout_add (100, (GSourceFunc)g_main_loop_quit, main_loop);
 }
 
 static void


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