diff options
author | Joey Hess <joey@kitenet.net> | 2012-08-29 14:05:56 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-08-29 14:05:56 -0400 |
commit | d2a4ffe669b6aeec0b660b08099aa56d3208daa7 (patch) | |
tree | 51656d9fb18b08ce2b10f537973a0d9e4f628ef5 /Assistant/Threads/TransferWatcher.hs | |
parent | 7ebe1d48754b068d0f79fc88cf45d67b8ae69bde (diff) |
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.
Diffstat (limited to 'Assistant/Threads/TransferWatcher.hs')
-rw-r--r-- | Assistant/Threads/TransferWatcher.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Assistant/Threads/TransferWatcher.hs b/Assistant/Threads/TransferWatcher.hs index 31116a724..fe8af9aad 100644 --- a/Assistant/Threads/TransferWatcher.hs +++ b/Assistant/Threads/TransferWatcher.hs @@ -64,7 +64,7 @@ onAdd st dstatus file _ = case parseTransferFile file of ] r <- headMaybe . filter (sameuuid t) . knownRemotes <$> getDaemonStatus dstatus - alterTransferInfo dstatus t info + updateTransferInfo dstatus t info { transferRemote = r } sameuuid t r = Remote.uuid r == transferUUID t |