From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> --- android/socket.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/socket.c b/android/socket.c index 70e2307..7b9e41b 100644 --- a/android/socket.c +++ b/android/socket.c @@ -852,6 +852,9 @@ static void sdp_search_cb(sdp_list_t *recs, int err, gpointer data) sdp_list_foreach(protos, (sdp_list_func_t) sdp_list_free, NULL); sdp_list_free(protos, NULL); + + if (chan) + break; } if (chan <= 0) { -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html