Nothing means end of protocol, not protocol error

This commit is contained in:
Joey Hess 2014-11-18 14:13:52 -04:00
parent 824d834000
commit 473ce8b757
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ spin hn hst = do
void $ tryIO $ forever $
showremote =<< hGetLine fromh
hClose fromh
Nothing -> error $ "protocol error; received: " ++ show status
Nothing -> return ()
loop
user = "root@"++hn