Force garbage collection after completing a Processable

This commit is contained in:
Michael Bucari-Tovo 2023-02-18 21:30:17 -07:00
parent 71503b34b5
commit defed72862

View File

@ -54,6 +54,8 @@ namespace FileLiberator
= (await ProcessAsync(libraryBook)) = (await ProcessAsync(libraryBook))
?? new StatusHandler { "Processable should never return a null status" }; ?? new StatusHandler { "Processable should never return a null status" };
GC.Collect(GC.MaxGeneration, GCCollectionMode.Aggressive, true, true);
return status; return status;
} }