diff --git a/main/gbx/gbx_c_file.c b/main/gbx/gbx_c_file.c index b91fef02c..d7598d030 100644 --- a/main/gbx/gbx_c_file.c +++ b/main/gbx/gbx_c_file.c @@ -59,7 +59,8 @@ static char _buffer[16]; static void callback_read(int fd, int type, CFILE *file) { - GB_Raise(file, EVENT_Read, 0); + if (!STREAM_read_ahead(CSTREAM_stream(file))) + GB_Raise(file, EVENT_Read, 0); }