got alterTransferInfo and updateTransferInfo mixed up
The poller only alters, to avoid re-adding transfers that get removed. The watcher updates, to add new transfers.
This commit is contained in:
parent
7ebe1d4875
commit
d2a4ffe669
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ transferPollerThread st dstatus = do
|
|||
fromIntegral . fileSize
|
||||
<$> getFileStatus f
|
||||
when (bytesComplete info /= sz && isJust sz) $
|
||||
updateTransferInfo dstatus t info
|
||||
alterTransferInfo dstatus t info
|
||||
{ bytesComplete = sz }
|
||||
{- can't poll uploads -}
|
||||
| otherwise = noop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue