From c1811ad8e86939c4d0176a37930a260e09df8cfc Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 3 Jun 2015 06:20:18 +0300 Subject: [PATCH] tools/btmgmt: Fix quit behavior if stop-find fails --- tools/btmgmt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index ed9a7bb9d..8f8bca1b8 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -2309,8 +2309,7 @@ static void stop_find_rsp(uint8_t status, uint16_t len, const void *param, fprintf(stderr, "Stop Discovery failed: status 0x%02x (%s)\n", status, mgmt_errstr(status)); - mainloop_quit(); - return; + return noninteractive_quit(EXIT_SUCCESS); } printf("Discovery stopped\n"); -- 2.47.3