diff options
Diffstat (limited to 'bgpd/bgp_peer.c')
-rw-r--r-- | bgpd/bgp_peer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_peer.c b/bgpd/bgp_peer.c index 10fedc86..aa1c8841 100644 --- a/bgpd/bgp_peer.c +++ b/bgpd/bgp_peer.c @@ -303,6 +303,10 @@ bgp_session_has_disabled(bgp_peer peer) bgp_session_enable(peer); } + /* if the program is terminating then see if this was the last session + * and if so ... die .... + */ + program_terminate_if_all_disabled(); return 0; } |