Quellcode durchsuchen

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

drieseng vor 9 Jahren
Ursprung
Commit
f80b14dc50
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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,