stop cleanly when there's a IO error accessing the Handle
All other exceptions are let through, but IO errors accessing the handle are to be expected, so quietly ignore.
This commit is contained in:
parent
ae69ebfc7c
commit
483dbcdbef
3 changed files with 70 additions and 60 deletions
|
@ -45,5 +45,5 @@ server th@(TransportHandle (LocalRepo r) _) = do
|
|||
forkIO $ do
|
||||
debugM "remotedaemon" "handling a connection"
|
||||
h <- torHandle conn
|
||||
runNetProtoHandle h h r (serve u)
|
||||
_ <- runNetProtoHandle h h r (serve u)
|
||||
hClose h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue