Return false if listen failed. --- android/handsfree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/handsfree.c b/android/handsfree.c index dc5c73d..fa27f10 100644 --- a/android/handsfree.c +++ b/android/handsfree.c @@ -1192,7 +1192,7 @@ static bool enable_hfp_ag(void) if (!hfp_server) { error("Failed to listen on Handsfree rfcomm: %s", err->message); g_error_free(err); - goto failed; + return false; } rec = hfp_ag_record(); -- 1.8.3.1 -- 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