Fix timeout in ssh client
authorDmitry Neverov <dmitry.neverov@gmail.com>
Thu, 25 Jan 2018 11:31:36 +0000 (12:31 +0100)
committerDmitry Neverov <dmitry.neverov@gmail.com>
Thu, 25 Jan 2018 11:31:36 +0000 (12:31 +0100)
git-agent/src/jetbrains/buildServer/buildTriggers/vcs/git/agent/JSchClient.java

index 3fffd9bd61518de598610bc845bb7f69409571e4..6405b592ff78f944e51cf2bf8bad04c262817286 100644 (file)
@@ -183,7 +183,7 @@ public class JSchClient {
 
       Copy copyThread = new Copy(input);
       if (timeoutSeconds != null) {
-        new Timer(copyThread, timeoutSeconds * 1000).start();
+        new Timer(copyThread, timeoutSeconds).start();
       }
       copyThread.start();
       copyThread.join();