From 0c8145803e8ad59e5ce959556877c7cf130ee3ac Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 2 Sep 2023 22:49:00 +0200 Subject: [PATCH] Possibly related to #20 --- Tranga/MangaConnectors/Mangasee.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tranga/MangaConnectors/Mangasee.cs b/Tranga/MangaConnectors/Mangasee.cs index ddf6153..5669e62 100644 --- a/Tranga/MangaConnectors/Mangasee.cs +++ b/Tranga/MangaConnectors/Mangasee.cs @@ -102,6 +102,7 @@ public class Mangasee : MangaConnector return ParseSinglePublicationFromHtml(document); } + page.CloseAsync(); return null; } @@ -262,6 +263,7 @@ public class Mangasee : MangaConnector { HtmlDocument document = new (); document.LoadHtml(page.GetContentAsync().Result); + page.CloseAsync(); HtmlNode gallery = document.DocumentNode.Descendants("div").First(div => div.HasClass("ImageGallery")); HtmlNode[] images = gallery.Descendants("img").Where(img => img.HasClass("img-fluid")).ToArray(); @@ -274,6 +276,8 @@ public class Mangasee : MangaConnector return DownloadChapterImages(urls.ToArray(), chapter.GetArchiveFilePath(settings.downloadLocation), 1, comicInfoPath, progressToken:progressToken); } + + page.CloseAsync(); return response.Status; } } \ No newline at end of file