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.
This commit is contained in:
Joey Hess 2014-03-13 19:30:13 -04:00
parent b63276309e
commit 8e2997aa69
3 changed files with 6 additions and 4 deletions

View file

@ -13,4 +13,5 @@ data CleanupAction
= RemoteCleanup UUID
| StopHook UUID
| FsckCleanup
| SshCachingCleanup
deriving (Eq, Ord)