mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-15 17:21:13 +10:00
Merge branch 'develop' into redistributable
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user