[PATCH 2/2] gathdlc: Unset disconnect function in unref
Zhenhua Zhang
zhenhua.zhang at intel.com
Tue Jul 6 02:57:38 PDT 2010
If we destroy PPP instance from g_at_ppp_unref, we should not invoke
io disconnect function.
---
gatchat/gathdlc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c
index 08a1939..0186e46 100644
--- a/gatchat/gathdlc.c
+++ b/gatchat/gathdlc.c
@@ -278,6 +278,7 @@ void g_at_hdlc_unref(GAtHDLC *hdlc)
hdlc->record_fd = -1;
}
+ g_at_io_set_disconnect_function(hdlc->io, NULL, NULL);
g_at_io_unref(hdlc->io);
hdlc->io = NULL;
--
1.6.3.3
More information about the ofono
mailing list