don't queue uploads for failed downloads

This commit is contained in:
Joey Hess 2012-09-24 13:16:08 -04:00
parent d77ff5dadd
commit 364b40e5fc

View file

@ -11,6 +11,7 @@ import Assistant.Common
import Assistant.ThreadedMonad import Assistant.ThreadedMonad
import Assistant.DaemonStatus import Assistant.DaemonStatus
import Assistant.TransferQueue import Assistant.TransferQueue
import Annex.Content
import Logs.Transfer import Logs.Transfer
import Utility.DirWatcher import Utility.DirWatcher
import Utility.Types.DirWatcher import Utility.Types.DirWatcher
@ -106,11 +107,11 @@ onDel st dstatus transferqueue file _ = case parseTransferFile file of
- spreading them out to other reachable remotes. -} - spreading them out to other reachable remotes. -}
case (minfo, transferDirection t) of case (minfo, transferDirection t) of
(Just info, Download) -> runThreadState st $ (Just info, Download) -> runThreadState st $
queueTransfersMatching whenM (inAnnex $ transferKey t) $
(/= transferUUID t) queueTransfersMatching
Later transferqueue dstatus (/= transferUUID t)
(transferKey t) Later transferqueue dstatus
(associatedFile info) (transferKey t)
Upload (associatedFile info)
Upload
_ -> noop _ -> noop