()
| 16376 | } |
| 16377 | if(prefs.gallery.downloadGap > 0){ |
| 16378 | let waitToDownloadOne = () => { |
| 16379 | setTimeout(() => { |
| 16380 | let saveParam = saveParams && saveParams.shift(); |
| 16381 | if (!saveParam) clearInterval(downIntv); |
| 16382 | else downloadOne(saveParam[0], saveParam[1], waitToDownloadOne); |
| 16383 | }, prefs.gallery.downloadGap); |
| 16384 | }; |
| 16385 | let threadNum = 10; |
| 16386 | if (prefs.gallery.downloadGap > 500) { |
| 16387 | threadNum = 1; |
nothing calls this directly
no test coverage detected