diff --git a/mz_strm_split.c b/mz_strm_split.c index a50392c5..cb304de2 100644 --- a/mz_strm_split.c +++ b/mz_strm_split.c @@ -246,6 +246,7 @@ int32_t mz_stream_split_read(void *stream, void *buf, int32_t size) { err = mz_stream_split_goto_disk(stream, split->current_disk + 1); if (err == MZ_EXIST_ERROR) { split->current_disk = -1; + break; } if (err != MZ_OK) return err;