favoritethread,silentthread: clean http and info on loop (fixed #131)

This commit is contained in:
dazedcat19 2020-10-06 05:28:45 +08:00
parent 5d8a1b07ec
commit b172f2769b
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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