From 5d07ca6a4912c127786eb505ddbbfc97a77c456f Mon Sep 17 00:00:00 2001 From: SadPencil Date: Fri, 15 Mar 2024 09:39:30 +0800 Subject: [PATCH] Fix broken custom component downloading in 8a33898 --- ClientUpdater/CustomComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ClientUpdater/CustomComponent.cs b/ClientUpdater/CustomComponent.cs index e21bcf3..1fb92e7 100644 --- a/ClientUpdater/CustomComponent.cs +++ b/ClientUpdater/CustomComponent.cs @@ -222,7 +222,7 @@ private async Task DoDownloadComponentAsync(CancellationToken cancellationToken) num++; - var downloadFileStream = new FileStream(versionFileName, FileMode.Create, FileAccess.Write, FileShare.None, 4096, FileOptions.Asynchronous); + var downloadFileStream = new FileStream(downloadFileName, FileMode.Create, FileAccess.Write, FileShare.None, 4096, FileOptions.Asynchronous); using (downloadFileStream) { Stream stream = await httpClient.GetStreamAsync(downloadUri).ConfigureAwait(false);