diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 08eff2f..e99e905 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartarchive', - version: '4.0.18', + version: '4.0.19', description: 'work with archives' } diff --git a/ts/bzip2/index.ts b/ts/bzip2/index.ts index 577a349..eb359f0 100644 --- a/ts/bzip2/index.ts +++ b/ts/bzip2/index.ts @@ -80,6 +80,9 @@ export function unbzip2Stream() { //console.error(x,'last compressing with', hasBytes, 'bytes in buffer'); while (!broken && bitReader && hasBytes > bitReader.bytesRead) { const result = await decompressAndPush(); + if (!result) { + continue; + } await streamTools.push(result); } if (!broken) {