Remove no-op calls to ServicePointManager
This commit is contained in:
parent
cef10b6abf
commit
b1632f8d11
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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")
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading.Tasks;
|
||||
using Onova;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user