mirror of git://git.sysmocom.de/ofono
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:
parent
7bbbb6949c
commit
15d93ad0b9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue