From e895850f1786178f7297293d9d3dafb53487cb18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Sun, 19 May 2024 21:35:20 +0200 Subject: [PATCH] Misc --- .../GlobalCache.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/GlobalCache.cs b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/GlobalCache.cs index aa8a4032f..9b9e3570a 100644 --- a/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/GlobalCache.cs +++ b/ArchiSteamFarm.OfficialPlugins.SteamTokenDumper/GlobalCache.cs @@ -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);