From 546ba8b7e1cf6b99f38aa0619397463422837ce0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 22 Aug 2012 15:37:26 -0400 Subject: better name --- Assistant/Threads/MountWatcher.hs | 2 +- Assistant/Threads/NetWatcher.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Assistant/Threads') diff --git a/Assistant/Threads/MountWatcher.hs b/Assistant/Threads/MountWatcher.hs index 3de594093..56b2b7c70 100644 --- a/Assistant/Threads/MountWatcher.hs +++ b/Assistant/Threads/MountWatcher.hs @@ -142,7 +142,7 @@ handleMounts st dstatus scanremotes wasmounted nowmounted = handleMount :: ThreadState -> DaemonStatusHandle -> ScanRemoteMap -> FilePath -> IO () handleMount st dstatus scanremotes dir = do debug thisThread ["detected mount of", dir] - syncRemotes thisThread st dstatus scanremotes + reconnectRemotes thisThread st dstatus scanremotes =<< filter (Git.repoIsLocal . Remote.repo) <$> remotesUnder st dstatus dir diff --git a/Assistant/Threads/NetWatcher.hs b/Assistant/Threads/NetWatcher.hs index ffe9e1e0a..500eff1ce 100644 --- a/Assistant/Threads/NetWatcher.hs +++ b/Assistant/Threads/NetWatcher.hs @@ -124,7 +124,7 @@ pollingThread st dstatus scanremotes = runEvery (Seconds 3600) $ handleConnection :: ThreadState -> DaemonStatusHandle -> ScanRemoteMap -> IO () handleConnection st dstatus scanremotes = do - syncRemotes thisThread st dstatus scanremotes =<< + reconnectRemotes thisThread st dstatus scanremotes =<< filter (Git.repoIsUrl . Remote.repo) <$> networkRemotes st -- cgit v1.2.3