move code around and rename thread; no functional changes
This commit is contained in:
parent
d068ec79ff
commit
fabb0c50b7
10 changed files with 130 additions and 122 deletions
|
@ -33,7 +33,7 @@ import Assistant.NamedThread
|
|||
import Assistant.Threads.Watcher (watchThread, WatcherControl(..))
|
||||
import Assistant.TransferSlots
|
||||
import Assistant.TransferQueue
|
||||
import Assistant.RemoteProblem
|
||||
import Assistant.RepoProblem
|
||||
import Logs.Transfer
|
||||
|
||||
import Data.Time.Clock
|
||||
|
@ -67,7 +67,7 @@ reconnectRemotes notifypushes rs = void $ do
|
|||
failedrs <- syncAction rs' (const go)
|
||||
forM_ failedrs $ \r ->
|
||||
whenM (liftIO $ Remote.checkAvailable False r) $
|
||||
remoteHasProblem r
|
||||
repoHasProblem (Remote.uuid r)
|
||||
mapM_ signal $ filter (`notElem` failedrs) rs'
|
||||
where
|
||||
gitremotes = filter (notspecialremote . Remote.repo) rs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue