run xmpp test in bound thread
This commit is contained in:
parent
07494cbb4b
commit
82b7e835e4
2 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,7 @@ data XMPPCreds = XMPPCreds
|
|||
connectXMPP :: XMPPCreds -> (JID -> XMPP a) -> IO (Either SomeException ())
|
||||
connectXMPP c a = case parseJID (xmppJID c) of
|
||||
Nothing -> error "bad JID"
|
||||
Just jid -> connectXMPP' jid c a
|
||||
Just jid -> runInBoundThread $ connectXMPP' jid c a
|
||||
|
||||
{- Do a SRV lookup, but if it fails, fall back to the cached xmppHostname. -}
|
||||
connectXMPP' :: JID -> XMPPCreds -> (JID -> XMPP a) -> IO (Either SomeException ())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue