diff options
| author | Guillaume Zajac <guillaume.zajac@linux.intel.com> | 2011-05-04 17:38:59 +0200 |
|---|---|---|
| committer | Denis Kenzior <denkenz@gmail.com> | 2011-05-08 22:59:03 -0500 |
| commit | badd5555ec5091fc990a823ad01185f15e700f8d (patch) | |
| tree | 1b76f9139a182e1c37999199600f5a1c2c268add | |
| parent | 8a56acd549ef29c51bf38d5741c3c64e41a58774 (diff) | |
| download | ofono-badd5555ec5091fc990a823ad01185f15e700f8d.tar.bz2 | |
gathdlc: delete read/write handler in hdlc_suspend
| -rw-r--r-- | gatchat/gathdlc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c index 6b1f3432..7989bd7c 100644 --- a/gatchat/gathdlc.c +++ b/gatchat/gathdlc.c @@ -166,6 +166,9 @@ static gboolean hdlc_suspend(gpointer user_data) g_at_io_drain_ring_buffer(hdlc->io, 3); + g_at_io_set_write_handler(hdlc->io, NULL, NULL); + g_at_io_set_read_handler(hdlc->io, NULL, NULL); + if (hdlc->suspend_func) hdlc->suspend_func(hdlc->suspend_data); |