Updated to support the latest version of the tls module.
This commit is contained in:
parent
7cefea4cbc
commit
50c8c0801e
4 changed files with 6 additions and 6 deletions
|
@ -103,7 +103,7 @@ runHsbot die_msgs = do
|
|||
-- TODO : kill plugin threads
|
||||
return code
|
||||
|
||||
botReader :: BotEnv -> Handle -> Maybe TLSCtx -> Chan Message -> IO ()
|
||||
botReader :: BotEnv -> Handle -> Maybe (TLSCtx Handle) -> Chan Message -> IO ()
|
||||
botReader env _ (Just ctx) chan = forever $
|
||||
fmap L.toString (recvData ctx) `catch` handleIOException env "botReader died" >>= handleIncomingStr chan
|
||||
botReader env handle Nothing chan = forever $
|
||||
|
|
Reference in a new issue