mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-08-28 05:04:40 +00:00
fix: disconnect socket
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user