From d1ce07d5cbbff73303c8544020dd1c1b30aee135 Mon Sep 17 00:00:00 2001 From: Vedang Patel Date: Wed, 14 Nov 2018 14:10:04 -0800 Subject: [PATCH] port: Fix for inhibit_announce. When inhibit_announce is set, ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES event is still sent once every state change. Avoid this by explicitly sending EV_NONE instead. [ RC - Simplify and keep all of the timer's state maintenance. ] Signed-off-by: Vedang Patel Signed-off-by: Richard Cochran --- port.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/port.c b/port.c index a52510a..428326e 100644 --- a/port.c +++ b/port.c @@ -2510,6 +2510,10 @@ static enum fsm_event bc_event(struct port *p, int fd_index) port_renew_transport(p)) { return EV_FAULT_DETECTED; } + + if (p->inhibit_announce) { + return EV_NONE; + } return EV_ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES; case FD_DELAY_TIMER: