gathdlc: delete read/write handler in hdlc_suspend
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>
Wed, 4 May 2011 15:38:59 +0000 (17:38 +0200)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 9 May 2011 03:59:03 +0000 (22:59 -0500)
gatchat/gathdlc.c

index 6b1f343..7989bd7 100644 (file)
@@ -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);