Content-Length: 269579 | pFad | http://github.com/Gyumeijie/github-files-fetcher/commit/2111d9d8b24d3ce1c26df1687ab8ae00b8e8f887

B2 Merge pull request #10 from tidunguyen/fix-program-exit · Gyumeijie/github-files-fetcher@2111d9d · GitHub
Skip to content

Commit 2111d9d

Browse files
authored
Merge pull request #10 from tidunguyen/fix-program-exit
Clear Interval to xit program if doesJustPrintHelpInfo is true
2 parents 023d326 + 975c17c commit 2111d9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -480,12 +480,14 @@ function detectInternetConnectivity() {
480480
timer = setInterval(detectInternetConnectivity, 2000);
481481

482482
if (!doseJustPrintHelpInfo) {
483-
// Initailize progress bar
483+
// Initialize progress bar
484484
console.log('');
485485
progressBar.start(fileStats.currentTotal, fileStats.downloaded, {
486486
status: 'downloading...',
487487
doesUseAuth,
488488
});
489489

490490
initializeDownload(parameters);
491+
} else {
492+
clearInterval(timer);
491493
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Gyumeijie/github-files-fetcher/commit/2111d9d8b24d3ce1c26df1687ab8ae00b8e8f887

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy