logic error
This commit is contained in:
parent
71b5ad8398
commit
2136ee4adb
1 changed files with 2 additions and 2 deletions
|
@ -53,14 +53,14 @@ transfererThread st dstatus transferqueue = do
|
|||
shouldtransfer t info = do
|
||||
current <- currentTransfers <$> getDaemonStatus dstatus
|
||||
if M.member t current
|
||||
then ifM (validtransfer t)
|
||||
then return False
|
||||
else ifM (validtransfer t)
|
||||
( do
|
||||
adjustTransfers dstatus $
|
||||
M.insertWith' const t info
|
||||
return True
|
||||
, return False
|
||||
)
|
||||
else return False
|
||||
|
||||
validtransfer t
|
||||
| transferDirection t == Download =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue