summaryrefslogtreecommitdiff
path: root/accel-pppd/session.c
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-09-04 01:52:28 +0300
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-09-04 01:52:28 +0300
commitb061e4b770edc2eee4a6df7831068a53e61d185d (patch)
treeebee6bbf1cb66c7faf71e1a4c38506df959fc8d9 /accel-pppd/session.c
parent5daf0f6782b769600855f745aa0a2e514a06a8aa (diff)
downloadaccel-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.c2
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;
}