Skip to content

Commit

Permalink
shorten timeout for file stability
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnrushefsky committed May 13, 2024
1 parent 7f88810 commit 374ef70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ function waitForFileStability(filePath: string): Promise<void> {
resolve();
} else {
retries++;
setTimeout(checkFile, 100); // Shortened interval due to smaller file size
setTimeout(checkFile, 50);
}
} else {
lastKnownSize = stats.size;
retries = 0;
setTimeout(checkFile, 100);
setTimeout(checkFile, 50);
}
});
};
Expand Down

0 comments on commit 374ef70

Please sign in to comment.