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:
parent
9f9cd94547
commit
3268d3d10a
3 changed files with 92 additions and 29 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue