Rate limit wait period now adjusts correctly

This commit is contained in:
Geomitron
2020-02-12 22:36:24 -05:00
parent 6c26c98468
commit c6b549340b
4 changed files with 105 additions and 35 deletions

View File

@@ -47,6 +47,8 @@ export class DownloadService {
if (this.downloads.findIndex(oldDownload => oldDownload.versionID == download.versionID) == -1) {
// If this is a new download item, don't call debouncedCallback; it may miss adding new versions to the list
callback(download)
} else if (download.type == 'wait') {
callback(download) // Many wait events can be recieved at once
} else {
debouncedCallback(download)
}