From dc1daa90ab97f5c30cd2f2f123db93786b61d19d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 6 Dec 2019 04:45:40 -0500 Subject: [PATCH] TT#72000 confirm immediately on a perfect endpoint match Change-Id: I7f0663a5b7ed6a224d385b3b1d07bc5cf13a185b --- daemon/media_socket.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon/media_socket.c b/daemon/media_socket.c index 31b7d069d..0d786baad 100644 --- a/daemon/media_socket.c +++ b/daemon/media_socket.c @@ -1601,8 +1601,11 @@ static int media_packet_address_check(struct packet_handler_ctx *phc) // now grab the best matched endpoint for (idx = 0; idx < 4; idx++) { use_endpoint_confirm = &phc->mp.stream->detected_endpoints[idx]; - if (use_endpoint_confirm->address.family) + if (use_endpoint_confirm->address.family) { + if (idx == 0) // doesn't get any better than this + goto confirm_now; break; + } } }