From: Kristen Carlson Accardi <kristen@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH 1/3] gsmdial: use g_at_chat_suspend
Date: Mon, 10 May 2010 11:39:41 -0700 [thread overview]
Message-ID: <1273516783-5132-2-git-send-email-kristen@linux.intel.com> (raw)
In-Reply-To: <1273516783-5132-1-git-send-email-kristen@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1013 bytes --]
---
gatchat/gsmdial.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index a531aa3..fd9b73b 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);
--
1.6.6.1
next prev parent reply other threads:[~2010-05-10 18:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-10 18:39 [PATCH 0/3] Allow use of from_io constructor Kristen Carlson Accardi
2010-05-10 18:39 ` Kristen Carlson Accardi [this message]
2010-05-10 18:39 ` [PATCH 2/3] gatchat: implement g_at_chat_get_io() Kristen Carlson Accardi
2010-05-10 18:39 ` [PATCH 3/3] gsmdial: use g_at_ppp_new_from_io() Kristen Carlson Accardi
2010-05-10 21:26 ` [PATCH 0/3] Allow use of from_io constructor Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1273516783-5132-2-git-send-email-kristen@linux.intel.com \
--to=kristen@linux.intel.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox