summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-09-26 15:50:16 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-09-26 15:50:16 +0400
commit652e35285ea23686345e5ed02336f90d2fda2ec5 (patch)
tree0b1674bad6b5a2ce6990fa0535360ca7c6fdc459 /accel-pppd
parent41a9c98a114f04dc9f14c240b302c24cf92f52a1 (diff)
downloadaccel-ppp-652e35285ea23686345e5ed02336f90d2fda2ec5.tar.gz
accel-ppp-652e35285ea23686345e5ed02336f90d2fda2ec5.zip
fixed counting of starting sessions
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c
index 6616f68..8fc6145 100644
--- a/accel-pppd/session.c
+++ b/accel-pppd/session.c
@@ -123,6 +123,9 @@ void __export ap_session_activate(struct ap_session *ses)
ap_session_ifup(ses);
+ if (ses->stop_time)
+ return;
+
ses->state = AP_STATE_ACTIVE;
__sync_sub_and_fetch(&ap_session_stat.starting, 1);
__sync_add_and_fetch(&ap_session_stat.active, 1);