diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-01-24 23:59:35 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-01-24 23:59:35 +0400 |
commit | fd85910188c8ae59e7f3e1ce321b831913ec0744 (patch) | |
tree | 9f6740d23bc746525614dff768330677f94b4fa3 /accel-pppd/session.c | |
parent | cf3de06a3346854d770ba147f081e3b22e93c1bc (diff) | |
download | accel-ppp-xebd-fd85910188c8ae59e7f3e1ce321b831913ec0744.tar.gz accel-ppp-xebd-fd85910188c8ae59e7f3e1ce321b831913ec0744.zip |
altered session finishing procedure
Diffstat (limited to 'accel-pppd/session.c')
-rw-r--r-- | accel-pppd/session.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/accel-pppd/session.c b/accel-pppd/session.c index 51264f8..1fd0075 100644 --- a/accel-pppd/session.c +++ b/accel-pppd/session.c @@ -125,10 +125,6 @@ void __export ap_session_finished(struct ap_session *ses) { ses->terminated = 1; - ap_session_read_stats(ses, NULL); - - triton_event_fire(EV_SES_PRE_FINISHED, ses); - pthread_rwlock_wrlock(&ses_lock); list_del(&ses->entry); pthread_rwlock_unlock(&ses_lock); @@ -206,10 +202,11 @@ void __export ap_session_terminate(struct ap_session *ses, int cause, int hard) log_ppp_debug("terminate\n"); ap_session_ifdown(ses); + ap_session_read_stats(ses, NULL); - triton_event_fire(EV_SES_FINISHING, ses); - ses->ctrl->terminate(ses, hard); + + triton_event_fire(EV_SES_FINISHING, ses); } void ap_shutdown_soft(void (*cb)(void)) |