diff options
author | Joey Hess <joey@kitenet.net> | 2012-08-28 14:19:11 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-08-28 14:19:11 -0400 |
commit | 1296cfb09a763878e7b9376f59aabf60fb8d7314 (patch) | |
tree | 01123e18dd0ae4419100f75cca2036387179e0c8 /Assistant/Threads/TransferWatcher.hs | |
parent | 7024a973b222c32f44a7168532afae520e7474ed (diff) |
avoid possibly re-adding a removed transfer when updating its info
Doesn't fix the bug I thought it'd fix, but is clearly correct.
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 fe8af9aad..31116a724 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 - updateTransferInfo dstatus t info + alterTransferInfo dstatus t info { transferRemote = r } sameuuid t r = Remote.uuid r == transferUUID t |