Skip to content

Commit 8597d18

Browse files
Thomas BeaversThomas Beavers
authored andcommitted
potential fix for issue #108
1 parent 321a25b commit 8597d18

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/flow.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,15 +295,13 @@
295295
if (this.opts.prioritizeFirstAndLastChunk) {
296296
each(this.files, function (file) {
297297
if (!file.paused && file.chunks.length &&
298-
file.chunks[0].status() === 'pending' &&
299-
file.chunks[0].preprocessState === 0) {
298+
file.chunks[0].status() === 'pending') {
300299
file.chunks[0].send();
301300
found = true;
302301
return false;
303302
}
304303
if (!file.paused && file.chunks.length > 1 &&
305-
file.chunks[file.chunks.length - 1].status() === 'pending' &&
306-
file.chunks[0].preprocessState === 0) {
304+
file.chunks[file.chunks.length - 1].status() === 'pending') {
307305
file.chunks[file.chunks.length - 1].send();
308306
found = true;
309307
return false;
@@ -318,7 +316,7 @@
318316
each(this.files, function (file) {
319317
if (!file.paused) {
320318
each(file.chunks, function (chunk) {
321-
if (chunk.status() === 'pending' && chunk.preprocessState === 0) {
319+
if (chunk.status() === 'pending') {
322320
chunk.send();
323321
found = true;
324322
return false;

0 commit comments

Comments
 (0)