From 23f625871dc4b6422e14f3c6aa70be0368153621 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Tue, 19 Feb 2013 17:00:03 -0400 Subject: [PATCH] tools: btmgmt: Add missing return after g_main_loop_quit() This change keeps semantic of previous code that used to call exit() directly. --- tools/btmgmt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index 9753724f8..46508763b 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -135,8 +135,10 @@ static void discovering(uint16_t index, uint16_t len, const void *param, return; } - if (ev->discovering == 0 && discovery) + if (ev->discovering == 0 && discovery) { g_main_loop_quit(event_loop); + return; + } if (monitor) printf("hci%u type %u discovering %s\n", index, -- 2.47.3