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:
parent
38e2dbb1cb
commit
dd697cbd3e
1 changed files with 4 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue