Skip to content

Commit

Permalink
bgpd: cancel events once in peer_free()
Browse files Browse the repository at this point in the history
Don't need to cancel scheduled events twice in a row - just
once.

Signed-off-by: Mark Stapp <mjs@cisco.com>
  • Loading branch information
Mark Stapp committed Sep 18, 2024
1 parent aab2946 commit 0548160
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion bgpd/bgpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,6 @@ static void peer_free(struct peer *peer)
EVENT_OFF(peer->t_revalidate_all[afi][safi]);
assert(!peer->connection->t_write);
assert(!peer->connection->t_read);
event_cancel_event_ready(bm->master, peer->connection);

/* Free connected nexthop, if present */
if (CHECK_FLAG(peer->flags, PEER_FLAG_CONFIG_NODE)
Expand Down

0 comments on commit 0548160

Please sign in to comment.