mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-07-02 00:57:38 +00:00
Mpc Disconnect implemented.
This commit is contained in:
@ -39,6 +39,19 @@ namespace LibMpc
|
||||
return _connection.IsConnected;
|
||||
}
|
||||
|
||||
public async Task DisconnectAsync()
|
||||
{
|
||||
if (_connection == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (_connection.IsConnected)
|
||||
{
|
||||
await _connection?.DisconnectAsync();
|
||||
}
|
||||
}
|
||||
|
||||
#region Admin Commands
|
||||
/// <summary>
|
||||
/// Disables an MPD output.
|
||||
|
Reference in New Issue
Block a user