Fix: GAtMux channels should return EAGAIN

GAtChat uses non-blocking semantics, so the GAtMux channels should
return the EAGAIN status to make GAtChat work properly.
This commit is contained in:
Denis Kenzior 2010-04-14 10:38:31 -05:00
parent 7bbbb6949c
commit 15d93ad0b9
1 changed files with 3 additions and 0 deletions

View File

@ -433,6 +433,9 @@ static GIOStatus channel_read(GIOChannel *channel, gchar *buf, gsize count,
*bytes_read = ring_buffer_read(mux_channel->buffer, buf, avail);
if (*bytes_read == 0)
return G_IO_STATUS_AGAIN;
return G_IO_STATUS_NORMAL;
}