From: Guillaume Zajac Date: Fri, 20 May 2011 09:38:14 +0000 (+0200) Subject: gatppp: Do not call disconnect func if suspended X-Git-Tag: 0.49~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db430aaf1ccf6f4f11bd53134a4ba9dade87af30;p=platform%2Fupstream%2Fofono.git gatppp: Do not call disconnect func if suspended --- diff --git a/gatchat/gatppp.c b/gatchat/gatppp.c index 2f97d55..135e98c 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);