Removed window map from http module to prevent memory pile-up with update scraping.

This commit is contained in:
DebaucheryLibrarian
2021-12-04 00:32:28 +01:00
parent 883e57ce1f
commit abd063a578
2 changed files with 6 additions and 4 deletions

View File

@@ -130,10 +130,10 @@ async function scrapeRelease(baseRelease, entitiesBySlug, type = 'scene') {
if (windows.has(pathname)) {
logger.debug(`Closing window for ${pathname}`);
}
windows.get(pathname)?.close();
windows.delete(pathname);
windows.get(pathname).close();
windows.delete(pathname);
}
await waitImmediate;