summaryrefslogtreecommitdiff
path: root/CmdLine.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-03-13 19:30:13 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-03-13 19:30:13 -0400
commitb3bdaf1a6f99b476da3f9821d83148f75be62121 (patch)
tree905c3771af445f66827918de25e9dc1b810a39c7 /CmdLine.hs
parentc1c5ff5626edbd4474b327dc8b8e66bd218b3e5e (diff)
only run sshCleanup when the command actually used ssh connection caching
Optimises query commands that do not. More importantly, avoids any ssh connection cleanup delay causing problems at the end of such commands.
Diffstat (limited to 'CmdLine.hs')
-rw-r--r--CmdLine.hs2
1 files changed, 0 insertions, 2 deletions
diff --git a/CmdLine.hs b/CmdLine.hs
index a920898dc..a165b041a 100644
--- a/CmdLine.hs
+++ b/CmdLine.hs
@@ -26,7 +26,6 @@ import qualified Annex
import qualified Git
import qualified Git.AutoCorrect
import Annex.Content
-import Annex.Ssh
import Annex.Environment
import Command
import Types.Messages
@@ -107,4 +106,3 @@ shutdown nocommit = do
saveState nocommit
sequence_ =<< M.elems <$> Annex.getState Annex.cleanup
liftIO reapZombies -- zombies from long-running git processes
- sshCleanup -- ssh connection caching