Libmpc.MpcConnection.Disconnect C# (CSharp) Method

Disconnect() public method

Disconnects from the current MPD server.
public Disconnect ( ) : void
return void
        public void Disconnect()
        {
            if (m_SocketManager == null)
            return;

              m_SocketManager.Socket.Close();
              m_SocketManager.Socket.Dispose();
              this.ClearConnectionFields();

              if (this.OnDisconnected != null)
            this.OnDisconnected.Invoke(this);
        }