Pdelvo.Minecraft.Proxy.Library.Connection.ProxyConnection.CloseAsync C# (CSharp) Method

CloseAsync() public method

Asynchronously close this connection
public CloseAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task CloseAsync()
        {
            await KickUserAsync("Proxy connection shutdown");
            if (_serverEndPoint != null)
            {
                _serverEndPoint.Close ();
                _serverEndPoint = null;
            }
        }