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
Assistant/Threads
|
@ -42,7 +42,7 @@ transferPollerThread st dstatus = do
|
||||||
fromIntegral . fileSize
|
fromIntegral . fileSize
|
||||||
<$> getFileStatus f
|
<$> getFileStatus f
|
||||||
when (bytesComplete info /= sz && isJust sz) $
|
when (bytesComplete info /= sz && isJust sz) $
|
||||||
updateTransferInfo dstatus t info
|
alterTransferInfo dstatus t info
|
||||||
{ bytesComplete = sz }
|
{ bytesComplete = sz }
|
||||||
{- can't poll uploads -}
|
{- can't poll uploads -}
|
||||||
| otherwise = noop
|
| otherwise = noop
|
||||||
|
|
|
@ -64,7 +64,7 @@ onAdd st dstatus file _ = case parseTransferFile file of
|
||||||
]
|
]
|
||||||
r <- headMaybe . filter (sameuuid t) . knownRemotes
|
r <- headMaybe . filter (sameuuid t) . knownRemotes
|
||||||
<$> getDaemonStatus dstatus
|
<$> getDaemonStatus dstatus
|
||||||
alterTransferInfo dstatus t info
|
updateTransferInfo dstatus t info
|
||||||
{ transferRemote = r }
|
{ transferRemote = r }
|
||||||
sameuuid t r = Remote.uuid r == transferUUID t
|
sameuuid t r = Remote.uuid r == transferUUID t
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue