diff --git a/api/assetImage.js b/api/assetImage.js index 97d8ebb..086eafc 100644 --- a/api/assetImage.js +++ b/api/assetImage.js @@ -122,8 +122,9 @@ async function loadAndScreenshotImage(libraryUrl, size) { ); } } finally { - // Close the page, to save on RAM in our shared browser instance. + // Tear down our resources when we're done! page.close(); + browser.close(); } }