This commit is contained in:
Łukasz Domeradzki
2024-05-19 21:35:20 +02:00
parent f776e7947c
commit e895850f17

View File

@@ -327,11 +327,15 @@ internal sealed class GlobalCache : SerializableFile {
StreamResponse? response = await ASF.WebBrowser.UrlGetToStream(request, cancellationToken: cancellationToken).ConfigureAwait(false);
if (response?.Content == null) {
if (response == null) {
return (false, null);
}
await using (response.ConfigureAwait(false)) {
if (response.Content == null) {
return (false, null);
}
try {
using StreamReader reader = new(response.Content);