Skip to content

Commit 175defe

Browse files
committed
ModApi.UpdateManager: set DownloadClient timeout in DllsUpdater.cs
1 parent 5243496 commit 175defe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ModApi.UpdateManager/DllsUpdater.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ public static void UpdateDlls(GithubRelease release, Action<int> progressHandler
108108
};
109109

110110
string zipName = Path.GetTempFileName();
111+
112+
downloadClient.SetTimeout(TimeSpan.FromMinutes(5));
111113
downloadClient.DownloadFile(zipName);
112114

113115
using (var zip = ZipFile.Open(zipName, ZipArchiveMode.Read))

0 commit comments

Comments
 (0)