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 $
|
void $ tryIO $ forever $
|
||||||
showremote =<< hGetLine fromh
|
showremote =<< hGetLine fromh
|
||||||
hClose fromh
|
hClose fromh
|
||||||
Nothing -> error $ "protocol error; received: " ++ show status
|
Nothing -> return ()
|
||||||
loop
|
loop
|
||||||
|
|
||||||
user = "root@"++hn
|
user = "root@"++hn
|
||||||
|
|
Loading…
Reference in New Issue