diff options
author | Joey Hess <joey@kitenet.net> | 2012-10-26 14:38:04 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-10-26 14:39:22 -0400 |
commit | 0666f5108543a5f4433615ca8413c582dc6f94f7 (patch) | |
tree | f0e5fcaf1cc1b5aaca292d97cdd7e00f6f1336bf /Assistant/Threads | |
parent | f41ba27ddbf3708e18931bec6fbe3aeea750f0dd (diff) |
run xmpp test in bound thread
Diffstat (limited to 'Assistant/Threads')
-rw-r--r-- | Assistant/Threads/PushNotifier.hs | 2 |
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 ()) |