summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-01-25 00:01:13 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-01-25 00:01:13 +0400
commit5be67a04fe1a4185732bf8dd143873b1c1553df3 (patch)
tree178a4af4ed379b15008fad5f8cfef0d435284570 /accel-pppd/ppp
parentbeab958fd001b41fb819c68d41c7fd0a89979ca2 (diff)
downloadaccel-ppp-5be67a04fe1a4185732bf8dd143873b1c1553df3.tar.gz
accel-ppp-5be67a04fe1a4185732bf8dd143873b1c1553df3.zip
Revert "altered session finishing procedure"
This reverts commit 9f4f36169f03857b6910402028717210270a0339.
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r--accel-pppd/ppp/ppp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c
index 5f3bbcd9..fee9334d 100644
--- a/accel-pppd/ppp/ppp.c
+++ b/accel-pppd/ppp/ppp.c
@@ -185,7 +185,9 @@ 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);
@@ -440,7 +442,7 @@ void __export ppp_terminate(struct ap_session *ses, int hard)
int s = 0;
if (hard) {
- triton_context_call(ses->ctrl->ctx, (triton_event_func)destablish_ppp, ppp);
+ destablish_ppp(ppp);
return;
}
@@ -455,7 +457,7 @@ void __export ppp_terminate(struct ap_session *ses, int hard)
if (s)
return;
- triton_context_call(ses->ctrl->ctx, (triton_event_func)destablish_ppp, ppp);
+ destablish_ppp(ppp);
}
void __export ppp_register_chan_handler(struct ppp_t *ppp,struct ppp_handler_t *h)