forked from Mirror/frr
Merge pull request #16859 from mjstapp/bgp_cancel_once
bgpd: cancel events once in peer_free()
This commit is contained in:
commit
fcc8738bb5
|
@ -1255,7 +1255,6 @@ static void peer_free(struct peer *peer)
|
||||||
EVENT_OFF(peer->t_revalidate_all[afi][safi]);
|
EVENT_OFF(peer->t_revalidate_all[afi][safi]);
|
||||||
assert(!peer->connection->t_write);
|
assert(!peer->connection->t_write);
|
||||||
assert(!peer->connection->t_read);
|
assert(!peer->connection->t_read);
|
||||||
event_cancel_event_ready(bm->master, peer->connection);
|
|
||||||
|
|
||||||
/* Free connected nexthop, if present */
|
/* Free connected nexthop, if present */
|
||||||
if (CHECK_FLAG(peer->flags, PEER_FLAG_CONFIG_NODE)
|
if (CHECK_FLAG(peer->flags, PEER_FLAG_CONFIG_NODE)
|
||||||
|
|
Loading…
Reference in a new issue