diff options
author | Kristen Carlson Accardi <kristen@linux.intel.com> | 2010-05-10 11:39:41 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-05-10 15:41:39 -0500 |
commit | cb36130b13d1991d01226ecf2acf6d9c2339d9e5 (patch) | |
tree | a8d8977c38c386aae2b790c6649bee4a02017c35 /gatchat/gsmdial.c | |
parent | 2d8a1462dbb1f760452e7416ccd8793109572d2b (diff) | |
download | ofono-cb36130b13d1991d01226ecf2acf6d9c2339d9e5.tar.bz2 |
gsmdial: use g_at_chat_suspend
Diffstat (limited to 'gatchat/gsmdial.c')
-rw-r--r-- | gatchat/gsmdial.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c index a531aa33..fd9b73bc 100644 --- a/gatchat/gsmdial.c +++ b/gatchat/gsmdial.c @@ -235,6 +235,8 @@ static void ppp_connect(const char *iface, const char *ip, static void ppp_disconnect(GAtPPPDisconnectReason reason, gpointer user_data) { g_print("PPP Link down: %d\n", reason); + g_at_chat_resume(control); + g_at_chat_resume(modem); } static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data) @@ -253,10 +255,8 @@ static void connect_cb(gboolean ok, GAtResult *result, gpointer user_data) * shutdown gatchat or else it tries to take all the input * from the modem and does not let PPP get it. */ - g_at_chat_unref(control); - control = NULL; - g_at_chat_unref(modem); - modem = NULL; + g_at_chat_suspend(control); + g_at_chat_suspend(modem); /* open ppp */ ppp = g_at_ppp_new(channel); |