fix: disconnect socket

This commit is contained in:
Evgeny Poberezkin 2022-04-30 14:09:25 +01:00
parent ace94d7c69
commit 6a1cea93b5
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ withTlsUnique peer cxt f =
closeTLS :: T.Context -> IO ()
closeTLS ctx =
T.bye ctx -- sometimes socket was closed before 'TLS.bye' so we catch the 'Broken pipe' error here
`catchAll_` T.contextClose ctx
`E.finally` T.contextClose ctx
`catchAll_` pure ()
supportedParameters :: T.Supported