summaryrefslogtreecommitdiff
path: root/Assistant
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-10-26 14:38:04 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-10-26 14:39:22 -0400
commit0666f5108543a5f4433615ca8413c582dc6f94f7 (patch)
treef0e5fcaf1cc1b5aaca292d97cdd7e00f6f1336bf /Assistant
parentf41ba27ddbf3708e18931bec6fbe3aeea750f0dd (diff)
run xmpp test in bound thread
Diffstat (limited to 'Assistant')
-rw-r--r--Assistant/Threads/PushNotifier.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Assistant/Threads/PushNotifier.hs b/Assistant/Threads/PushNotifier.hs
index 4ba8d677b..983f0089d 100644
--- a/Assistant/Threads/PushNotifier.hs
+++ b/Assistant/Threads/PushNotifier.hs
@@ -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 ())