Explorar o código

Inversed logic, as ConnectAsync returns true when there's I/O pending.

drieseng %!s(int64=9) %!d(string=hai) anos
pai
achega
f80b14dc50
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Renci.SshNet/Abstractions/SocketAbstraction.cs

+ 1 - 1
src/Renci.SshNet/Abstractions/SocketAbstraction.cs

@@ -48,7 +48,7 @@ namespace Renci.SshNet.Abstractions
             };
             args.Completed += ConnectCompleted;
 
-            if (!socket.ConnectAsync(args))
+            if (socket.ConnectAsync(args))
             {
                 if (!connectCompleted.WaitOne(connectTimeout))
                     throw new SshOperationTimeoutException(string.Format(CultureInfo.InvariantCulture,