diff options
Diffstat (limited to 'Assistant/Threads/TransferWatcher.hs')
-rw-r--r-- | Assistant/Threads/TransferWatcher.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Assistant/Threads/TransferWatcher.hs b/Assistant/Threads/TransferWatcher.hs index 69fa87022..7045e842d 100644 --- a/Assistant/Threads/TransferWatcher.hs +++ b/Assistant/Threads/TransferWatcher.hs @@ -62,10 +62,8 @@ onAdd file = case parseTransferFile file of go _ Nothing = noop -- transfer already finished go t (Just info) = do debug [ "transfer starting:", describeTransfer t info ] - r <- headMaybe . filter (sameuuid t) - <$> liftAnnex Remote.remoteList + r <- liftAnnex $ Remote.remoteFromUUID $ transferUUID t updateTransferInfo t info { transferRemote = r } - sameuuid t r = Remote.uuid r == transferUUID t {- Called when a transfer information file is updated. - |