summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat/gatppp.c')
-rw-r--r--gatchat/gatppp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 2b853f06..6d4950d9 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -419,7 +419,6 @@ static void ppp_transition_phase(GAtPPP *ppp, enum ppp_phase phase)
/* otherwise we need to wait for the peer to send us a challenge */
break;
case PPP_TERMINATION:
- /* signal DOWN event to LCP */
lcp_terminate(ppp->lcp);
break;
case PPP_DEAD:
@@ -570,8 +569,7 @@ void g_at_ppp_set_recording(GAtPPP *ppp, const char *filename)
void g_at_ppp_shutdown(GAtPPP *ppp)
{
- /* send a CLOSE event to the lcp layer */
- lcp_close(ppp->lcp);
+ ppp_generate_event(ppp, PPP_CLOSING);
}
void g_at_ppp_ref(GAtPPP *ppp)