1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-05 18:34:17 +02:00

Update untar for streaming

This commit is contained in:
codedread 2018-01-24 23:52:20 -08:00
parent 9f9cd94547
commit 3268d3d10a
3 changed files with 92 additions and 29 deletions

View file

@ -631,6 +631,8 @@ onmessage = function(event) {
postMessage(new bitjs.archive.UnarchiveStartEvent());
unarchiveState = UnarchiveState.UNARCHIVING;
postProgress();
}
if (unarchiveState === UnarchiveState.UNARCHIVING ||
@ -644,7 +646,7 @@ onmessage = function(event) {
// Overrun the buffer.
unarchiveState = UnarchiveState.WAITING;
} else {
console.error('Found an error while unrarring');
console.error('Found an error while unzipping');
console.dir(e);
throw e;
}