avoid failure alerts for temporary transfer failures

Since a failed transfer gets retried until it succeeds, no point in
bothering the user about them.
This commit is contained in:
Joey Hess 2012-08-29 12:58:29 -04:00
parent 38e2dbb1cb
commit dd697cbd3e

View file

@ -86,9 +86,10 @@ doTransfer dstatus t info program = case (transferRemote info, associatedFile in
<- createProcess (proc program $ toCommand params) <- createProcess (proc program $ toCommand params)
{ create_group = True } { create_group = True }
ok <- (==) ExitSuccess <$> waitForProcess pid ok <- (==) ExitSuccess <$> waitForProcess pid
addAlert dstatus $ when ok $ void $
makeAlertFiller ok $ addAlert dstatus $
transferFileAlert direction ok file makeAlertFiller ok $
transferFileAlert direction ok file
where where
params = params =
[ Param "transferkey" [ Param "transferkey"