From c18829a8bf7999ce9b4b6233e343d9aafe7fd11b Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 26 Oct 2020 16:36:11 -0700 Subject: [PATCH] avdtp: Fix not setting timeout when reconfiguring When reconfiguring a codec avdtp_close will be used which resets dc_timeout which can cause early disconnection if the new configuration fails making it impossible to try other configurations. --- profiles/audio/avdtp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c index ae93fb26f..97b4d1b44 100644 --- a/profiles/audio/avdtp.c +++ b/profiles/audio/avdtp.c @@ -3498,6 +3498,7 @@ int avdtp_set_configuration(struct avdtp *session, session->streams = g_slist_append(session->streams, new_stream); if (stream) *stream = new_stream; + session->dc_timeout = DISCONNECT_TIMEOUT; } g_free(req); -- 2.47.3