diff --git a/main/gbx/gbx_stream.c b/main/gbx/gbx_stream.c index 8d5b07924..def6f0cce 100644 --- a/main/gbx/gbx_stream.c +++ b/main/gbx/gbx_stream.c @@ -295,7 +295,7 @@ void STREAM_close(STREAM *stream) { if ((*(stream->type->close))(stream)) { - if (errno != EBADF) + if (errno != EBADF && errno != EINPROGRESS && errno != EAGAIN) THROW_SYSTEM(errno, ""); } }