From b172f2769bd7af3fdf4478a6faf99b93e3f78716 Mon Sep 17 00:00:00 2001 From: dazedcat19 <59296763+dazedcat19@users.noreply.github.com> Date: Tue, 6 Oct 2020 05:28:45 +0800 Subject: [PATCH] favoritethread,silentthread: clean http and info on loop (fixed #131) --- baseunits/uFavoritesManager.pas | 3 ++- baseunits/uSilentThread.pas | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/baseunits/uFavoritesManager.pas b/baseunits/uFavoritesManager.pas index 255203af..f8129041 100644 --- a/baseunits/uFavoritesManager.pas +++ b/baseunits/uFavoritesManager.pas @@ -305,9 +305,10 @@ begin with FContainer do try + FMangaInformation.HTTP.Reset; + FMangaInformation.MangaInfo.Clear; FMangaInformation.Module := FavoriteInfo.Module; FMangaInformation.isGetByUpdater := False; - FMangaInformation.MangaInfo.Clear; // get new manga info FMangaInformation.GetInfoFromURL(FavoriteInfo.Link); if not Terminated then diff --git a/baseunits/uSilentThread.pas b/baseunits/uSilentThread.pas index 8ebf1639..f35d7dbe 100644 --- a/baseunits/uSilentThread.pas +++ b/baseunits/uSilentThread.pas @@ -404,6 +404,8 @@ begin begin Synchronize(FManager.UpdateLoadStatus); try + FInfo.HTTP.Reset; + FInfo.MangaInfo.Clear; FInfo.Module := FModule; FInfo.MangaInfo.Title := FTitle; if (FInfo.GetInfoFromURL(FURL)=NO_ERROR) and not(Terminated) then