Diff between 4c5ba570aac02f88a3eba52985090f3bbb1c2663 and 23f625871dc4b6422e14f3c6aa70be0368153621
Changed Files
| File | Additions | Deletions | Status |
| tools/btmgmt.c | +3 | -1 | modified |
Full Patch
diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 9753724..4650876 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,