From b6f78da9c87915036da1ac6f6d94799c525b2af7 Mon Sep 17 00:00:00 2001 From: FrigaT Date: Mon, 20 Apr 2026 14:47:43 +0300 Subject: [PATCH] dispose --- YandexMusic/YandexMusicClient.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/YandexMusic/YandexMusicClient.cs b/YandexMusic/YandexMusicClient.cs index 54f11e9..9783742 100644 --- a/YandexMusic/YandexMusicClient.cs +++ b/YandexMusic/YandexMusicClient.cs @@ -24,7 +24,6 @@ public class YandexMusicClient : IDisposable private readonly YandexMusicApi _api; private readonly AuthStorage _storage; private readonly HttpClient _httpClient; - private readonly bool _ownsHttpClient; private YnisonPlayer? _player; /// Хранилище авторизации. @@ -417,8 +416,7 @@ public class YandexMusicClient : IDisposable { if (_disposed) return; _player?.Dispose(); - if (_ownsHttpClient) - _httpClient.Dispose(); + _httpClient.Dispose(); _disposed = true; GC.SuppressFinalize(this); }