diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-09-04 01:52:28 +0300 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-09-04 01:52:28 +0300 |
commit | b061e4b770edc2eee4a6df7831068a53e61d185d (patch) | |
tree | ebee6bbf1cb66c7faf71e1a4c38506df959fc8d9 /accel-pppd/session.c | |
parent | 5daf0f6782b769600855f745aa0a2e514a06a8aa (diff) | |
download | accel-ppp-b061e4b770edc2eee4a6df7831068a53e61d185d.tar.gz accel-ppp-b061e4b770edc2eee4a6df7831068a53e61d185d.zip |
Terminate session by the second PoD when soft-terminate=1 configured
Diffstat (limited to 'accel-pppd/session.c')
-rw-r--r-- | accel-pppd/session.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c index 1411f24f..78d12f95 100644 --- a/accel-pppd/session.c +++ b/accel-pppd/session.c @@ -278,6 +278,8 @@ void __export ap_session_terminate(struct ap_session *ses, int cause, int hard) if (ses->terminating) { if (hard) ses->ctrl->terminate(ses, hard); + else if (ses->state == AP_STATE_FINISHING) + ses->ctrl->terminate(ses, 1); return; } |