From a2dddbc768d23f541db2d8eb3a7f3891c002bfa6 Mon Sep 17 00:00:00 2001 From: Eris Date: Mon, 5 Dec 2022 18:38:28 +0100 Subject: [PATCH] Fix issue preventing installing multiple older versions without restarting --- LegacyInstaller/SteamDownloader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LegacyInstaller/SteamDownloader.cs b/LegacyInstaller/SteamDownloader.cs index bec14b4..f38dbbc 100644 --- a/LegacyInstaller/SteamDownloader.cs +++ b/LegacyInstaller/SteamDownloader.cs @@ -42,7 +42,7 @@ public async Task DownloadDepot(string manifestId, FileSystemEventHandler eventH { await PatchDownloadDepot(); - if (_downloadDepotTcs != null) + if (_downloadDepotTcs != null && !(_downloadDepotTcs.Task.IsCompleted || _downloadDepotTcs.Task.IsCanceled || _downloadDepotTcs.Task.IsFaulted)) throw new DownloadInProgressException(); if (eventHandler != null)