diff options
author | Zhenhua Zhang <zhenhua.zhang@intel.com> | 2010-06-12 13:50:48 +0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-06-17 14:57:49 -0500 |
commit | e2e17512e0666f322bc5f833e48f12b51fb0027e (patch) | |
tree | 5796eda276fc3808ac063276bdb70c8857ffa14a /gatchat | |
parent | 199582f684acd6eea082343aa5ffeb4614754279 (diff) |
gsmdial: Unref ppp when we get disconnected
Diffstat (limited to 'gatchat')
-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); |