Improve readability of ConnectToRemoteConsole in XSVNCScreen

Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
Danilo Del Busso 2023-08-17 15:24:57 +01:00
parent 23391e7293
commit 212543f4c0
No known key found for this signature in database

View File

@ -614,10 +614,8 @@ namespace XenAdmin.ConsoleView
{
if (_vncClient != null)
ThreadPool.QueueUserWorkItem(Connect, new KeyValuePair<VNCGraphicsClient, Exception>(_vncClient, null));
else
{
_rdpClient?.Connect(RdpIp);
}
else if (_rdpClient != null)
_rdpClient.Connect(RdpIp);
}
private void ConnectionSuccess(object sender, EventArgs e)