summaryrefslogtreecommitdiffstats
path: root/gatchat/gatppp.c
diff options
context:
space:
mode:
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>2011-05-20 11:38:14 +0200
committerDenis Kenzior <denkenz@gmail.com>2011-05-24 12:25:07 -0500
commitdb430aaf1ccf6f4f11bd53134a4ba9dade87af30 (patch)
tree206da6f74764c3925dc49aafc7b4474ea8926b2c /gatchat/gatppp.c
parentab027e9e9c92c3830359a54b5b9ef02711dbc88e (diff)
downloadofono-db430aaf1ccf6f4f11bd53134a4ba9dade87af30.tar.bz2
gatppp: Do not call disconnect func if suspended
Diffstat (limited to 'gatchat/gatppp.c')
-rw-r--r--gatchat/gatppp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c
index 2f97d552..135e98cf 100644
--- a/gatchat/gatppp.c
+++ b/gatchat/gatppp.c
@@ -583,8 +583,9 @@ void g_at_ppp_unref(GAtPPP *ppp)
if (is_zero == FALSE)
return;
- g_at_io_set_disconnect_function(g_at_hdlc_get_io(ppp->hdlc),
- NULL, NULL);
+ if (ppp->suspended == FALSE)
+ g_at_io_set_disconnect_function(g_at_hdlc_get_io(ppp->hdlc),
+ NULL, NULL);
if (ppp->net)
ppp_net_free(ppp->net);