Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6f78da9c8 |
@@ -24,7 +24,6 @@ public class YandexMusicClient : IDisposable
|
|||||||
private readonly YandexMusicApi _api;
|
private readonly YandexMusicApi _api;
|
||||||
private readonly AuthStorage _storage;
|
private readonly AuthStorage _storage;
|
||||||
private readonly HttpClient _httpClient;
|
private readonly HttpClient _httpClient;
|
||||||
private readonly bool _ownsHttpClient;
|
|
||||||
private YnisonPlayer? _player;
|
private YnisonPlayer? _player;
|
||||||
|
|
||||||
/// <summary>Хранилище авторизации.</summary>
|
/// <summary>Хранилище авторизации.</summary>
|
||||||
@@ -417,8 +416,7 @@ public class YandexMusicClient : IDisposable
|
|||||||
{
|
{
|
||||||
if (_disposed) return;
|
if (_disposed) return;
|
||||||
_player?.Dispose();
|
_player?.Dispose();
|
||||||
if (_ownsHttpClient)
|
_httpClient.Dispose();
|
||||||
_httpClient.Dispose();
|
|
||||||
_disposed = true;
|
_disposed = true;
|
||||||
GC.SuppressFinalize(this);
|
GC.SuppressFinalize(this);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user