public void DisConnect() { if (InnerClient.Status == NetPeerStatus.Running) { InnerClient.Disconnect("Disconnect"); InnerClient.Shutdown("Shutdown"); } }