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:
Joey Hess 2016-11-21 21:22:58 -04:00
parent ae69ebfc7c
commit 483dbcdbef
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
3 changed files with 70 additions and 60 deletions

View file

@ -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