avoid autoenable of dead special remotes

This commit is contained in:
Joey Hess 2015-09-14 15:28:14 -04:00
parent b1fbb08dc5
commit c919489c3e

View file

@ -73,7 +73,7 @@ autoEnable = do
remotemap <- M.filter wanted <$> readRemoteLog
forM_ (M.toList remotemap) $ \(u, c) ->
case (M.lookup nameKey c, findType c) of
(Just name, Right t) -> do
(Just name, Right t) -> unlessM ((== DeadTrusted) <$> lookupTrust u) $ do
showSideAction $ "Auto enabling special remote " ++ name
res <- tryNonAsync $ setup t (Just u) Nothing c
case res of