summaryrefslogtreecommitdiffstats
path: root/gatchat/gsmdial.c
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2010-06-12 13:50:48 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-06-17 14:57:49 -0500
commite2e17512e0666f322bc5f833e48f12b51fb0027e (patch)
tree5796eda276fc3808ac063276bdb70c8857ffa14a /gatchat/gsmdial.c
parent199582f684acd6eea082343aa5ffeb4614754279 (diff)
downloadofono-e2e17512e0666f322bc5f833e48f12b51fb0027e.tar.bz2
gsmdial: Unref ppp when we get disconnected
Diffstat (limited to 'gatchat/gsmdial.c')
-rw-r--r--gatchat/gsmdial.c5
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);