summaryrefslogtreecommitdiff
path: root/Assistant/Threads/TransferWatcher.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Assistant/Threads/TransferWatcher.hs')
-rw-r--r--Assistant/Threads/TransferWatcher.hs7
1 files changed, 1 insertions, 6 deletions
diff --git a/Assistant/Threads/TransferWatcher.hs b/Assistant/Threads/TransferWatcher.hs
index 447ff2264..66c916990 100644
--- a/Assistant/Threads/TransferWatcher.hs
+++ b/Assistant/Threads/TransferWatcher.hs
@@ -14,8 +14,6 @@ import Logs.Transfer
import Utility.DirWatcher
import Utility.Types.DirWatcher
-import Data.Map as M
-
thisThread :: ThreadName
thisThread = "TransferWatcher"
@@ -63,10 +61,7 @@ onAdd st dstatus file _ = case parseTransferFile file of
[ "transfer starting:"
, show t
]
- adjustTransfers dstatus $
- M.insertWith' merge t info
- -- preseve transferTid, which is not written to disk
- merge new old = new { transferTid = transferTid old }
+ updateTransferInfo dstatus t info
{- Called when a transfer information file is removed. -}
onDel :: Handler