Chimney.MPD.ChimneyMPDBase.RefreshConnection C# (CSharp) Method

RefreshConnection() public method

public RefreshConnection ( ) : Task
return Task
        public virtual async Task<bool> RefreshConnection()
        {
            /*
            bool suc = false;
            int i = 3;
            while (i > 0 || !suc)
            {
                suc = await Connection.Send(_connection.Socket, "CLOSE");
                i--;
            }
            */

            bool suc = await Connect(this.host, this.port, this.password, true);

            return suc;
        }