Merge branch 'develop' into redistributable

This commit is contained in:
DecDuck
2025-08-25 16:19:48 +10:00
27 changed files with 1098 additions and 184 deletions

View File

@ -58,7 +58,7 @@ class DownloadContextManager {
async cleanup() {
for (const key of this.contexts.keys()) {
const context = this.contexts.get(key)!;
if (context.timeout.getDate() + TIMEOUT < Date.now()) {
if (context.timeout.getTime() < Date.now() - TIMEOUT) {
this.contexts.delete(key);
}
}