Remove no-op calls to ServicePointManager

This commit is contained in:
Tyrrrz 2024-11-06 22:56:27 +02:00
parent cef10b6abf
commit b1632f8d11
4 changed files with 0 additions and 7 deletions

View File

@ -1,5 +1,4 @@
using System;
using System.Net;
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
@ -78,9 +77,6 @@ public class App : Application, IDisposable
{
base.Initialize();
// Increase maximum concurrent connections
ServicePointManager.DefaultConnectionLimit = 20;
AvaloniaXamlLoader.Load(this);
}

View File

@ -36,7 +36,6 @@ if (Test-Path $outputPath) {
# Download the archive
Write-Host "Downloading FFmpeg for $platform..."
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$http = New-Object System.Net.WebClient
try {
$http.DownloadFile("https://github.com/Tyrrrz/FFmpegBin/releases/download/7.0/ffmpeg-$platform.zip", "$outputPath.zip")

View File

@ -1,5 +1,4 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Onova;

View File

@ -3,7 +3,6 @@ using System.Diagnostics;
using System.Threading.Tasks;
using Avalonia;
using CommunityToolkit.Mvvm.Input;
using YoutubeDownloader.Core;
using YoutubeDownloader.Core.Downloading;
using YoutubeDownloader.Framework;
using YoutubeDownloader.Services;