summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-01-24 23:59:35 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-01-24 23:59:35 +0400
commitfd85910188c8ae59e7f3e1ce321b831913ec0744 (patch)
tree9f6740d23bc746525614dff768330677f94b4fa3 /accel-pppd/ppp
parentcf3de06a3346854d770ba147f081e3b22e93c1bc (diff)
downloadaccel-ppp-fd85910188c8ae59e7f3e1ce321b831913ec0744.tar.gz
accel-ppp-fd85910188c8ae59e7f3e1ce321b831913ec0744.zip
altered session finishing procedure
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r--accel-pppd/ppp/ppp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c
index fee9334d..5f3bbcd9 100644
--- a/accel-pppd/ppp/ppp.c
+++ b/accel-pppd/ppp/ppp.c
@@ -185,9 +185,7 @@ exit_close_chan:
static void destablish_ppp(struct ppp_t *ppp)
{
struct pppunit_cache *uc;
-
- triton_event_fire(EV_SES_PRE_FINISHED, ppp);
-
+
triton_md_unregister_handler(&ppp->chan_hnd);
triton_md_unregister_handler(&ppp->unit_hnd);
@@ -442,7 +440,7 @@ void __export ppp_terminate(struct ap_session *ses, int hard)
int s = 0;
if (hard) {
- destablish_ppp(ppp);
+ triton_context_call(ses->ctrl->ctx, (triton_event_func)destablish_ppp, ppp);
return;
}
@@ -457,7 +455,7 @@ void __export ppp_terminate(struct ap_session *ses, int hard)
if (s)
return;
- destablish_ppp(ppp);
+ triton_context_call(ses->ctrl->ctx, (triton_event_func)destablish_ppp, ppp);
}
void __export ppp_register_chan_handler(struct ppp_t *ppp,struct ppp_handler_t *h)