make sure False is returned on error
This commit is contained in:
parent
def2019602
commit
b2b6296f9d
1 changed files with 2 additions and 1 deletions
|
@ -124,7 +124,8 @@ wormHoleProcess :: WormHoleParams -> CreateProcess
|
|||
wormHoleProcess = proc "wormhole" . toCommand
|
||||
|
||||
runWormHoleProcess :: CreateProcess -> (Handle -> Handle -> IO Bool) -> IO Bool
|
||||
runWormHoleProcess p consumer = bracketOnError setup cleanup go
|
||||
runWormHoleProcess p consumer =
|
||||
bracketOnError setup (\v -> cleanup v <&&> return False) go
|
||||
where
|
||||
setup = do
|
||||
(Just hin, Just hout, Nothing, pid)
|
||||
|
|
Loading…
Reference in a new issue