gatchat: Turn off buffering of GAtChat IO channels
authorDenis Kenzior <denkenz@gmail.com>
Tue, 18 Jan 2011 18:14:42 +0000 (12:14 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 18 Jan 2011 18:16:19 +0000 (12:16 -0600)
After commit d83da353702c8533c36e06ead14aaec5ba900cf4 this was causing
the command queue to never run.

gatchat/gatutil.c

index 393d94c..0ac20b5 100644 (file)
@@ -140,6 +140,8 @@ gboolean g_at_util_setup_io(GIOChannel *io, GIOFlags flags)
                        G_IO_STATUS_NORMAL)
                return FALSE;
 
+       g_io_channel_set_buffered(io, FALSE);
+
        if (flags & G_IO_FLAG_SET_MASK) {
                io_flags = g_io_channel_get_flags(io);