Removed window map from http module to prevent memory pile-up with update scraping.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user