1
0
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:
Gabriel
2016-12-02 15:41:19 +01:00
parent c95c09fa2c
commit 483f6740e0
2 changed files with 17 additions and 4 deletions

View File

@ -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.