Merge pull request #13069 from FRRouting/mergify/bp/stable/8.5/pr-13061

lib: on bfd peer shutdown actually stop event (backport #13061)
This commit is contained in:
Donald Sharp 2023-03-21 06:58:42 -04:00 committed by GitHub
commit 86be025eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -547,13 +547,13 @@ static void _bfd_sess_send(struct thread *t)
static void _bfd_sess_remove(struct bfd_session_params *bsp)
{
/* Cancel any pending installation request. */
THREAD_OFF(bsp->installev);
/* Not installed, nothing to do. */
if (!bsp->installed)
return;
/* Cancel any pending installation request. */
THREAD_OFF(bsp->installev);
/* Send request to remove any session. */
bsp->lastev = BSE_UNINSTALL;
thread_execute(bsglobal.tm, _bfd_sess_send, bsp, 0);