about summary refs log tree commit diff
path: root/perl/lib
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-05-10T00·38+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-05-10T00·38+0200
commit3a0cc43ac89ae8f778764c9f5e27b361e4986913 (patch)
treecb3a4a95ad67c62deb6007cb4c0ef846c16411b5 /perl/lib
parentbe0b9dda31ab42bb2e077751fc75abbc945e407f (diff)
build-remote.pl: Properly close the SSH connection between attempts
Diffstat (limited to 'perl/lib')
-rw-r--r--perl/lib/Nix/SSH.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl/lib/Nix/SSH.pm b/perl/lib/Nix/SSH.pm
index 68f4a628b072..584c44500981 100644
--- a/perl/lib/Nix/SSH.pm
+++ b/perl/lib/Nix/SSH.pm
@@ -44,6 +44,7 @@ sub closeSSHConnection {
     if ($sshStarted) {
         system("ssh $sshHost @sshOpts -O exit 2> /dev/null") == 0
             or warn "unable to stop SSH master: $?";
+        $sshStarted = 0;
     }
 }