mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Reset socket exception before other operations for safety
Co-authored-by: Kvarkas <3611964+Kvarkas@users.noreply.github.com>
This commit is contained in:
@@ -165,10 +165,10 @@ namespace mRemoteNG.Connection.Protocol.VNC
|
||||
{
|
||||
lock (_testConnectLock)
|
||||
{
|
||||
_socketexception = null;
|
||||
TcpClient tcpclient = new();
|
||||
|
||||
TimeoutObject.Reset();
|
||||
_socketexception = null;
|
||||
tcpclient.BeginConnect(hostName, port, CallBackMethod, tcpclient);
|
||||
|
||||
if (TimeoutObject.WaitOne(timeoutMSec, false))
|
||||
|
||||
Reference in New Issue
Block a user