Nothing means end of protocol, not protocol error
This commit is contained in:
parent
824d834000
commit
473ce8b757
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue