diff options
Diffstat (limited to 'gatchat/gsmdial.c')
-rw-r--r-- | gatchat/gsmdial.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c index a7d38c92..62c3b3d4 100644 --- a/gatchat/gsmdial.c +++ b/gatchat/gsmdial.c @@ -235,7 +235,12 @@ static void ppp_connect(const char *iface, const char *ip, static void ppp_disconnect(GAtPPPDisconnectReason reason, gpointer user_data) { char buf[64]; + g_print("PPP Link down: %d\n", reason); + + g_at_ppp_unref(ppp); + ppp = NULL; + g_at_chat_resume(modem); sprintf(buf, "AT+CFUN=%u", option_offmode); |