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)
{ create_group = True }
ok <- (==) ExitSuccess <$> waitForProcess pid
addAlert dstatus $
makeAlertFiller ok $
transferFileAlert direction ok file
when ok $ void $
addAlert dstatus $
makeAlertFiller ok $
transferFileAlert direction ok file
where
params =
[ Param "transferkey"