summaryrefslogtreecommitdiff
path: root/Assistant
diff options
context:
space:
mode:
Diffstat (limited to 'Assistant')
-rw-r--r--Assistant/Threads/PushNotifier.hs2
-rw-r--r--Assistant/XMPP.hs3
2 files changed, 2 insertions, 3 deletions
diff --git a/Assistant/Threads/PushNotifier.hs b/Assistant/Threads/PushNotifier.hs
index 8c71138d7..9f15d5419 100644
--- a/Assistant/Threads/PushNotifier.hs
+++ b/Assistant/Threads/PushNotifier.hs
@@ -35,7 +35,7 @@ pushNotifierThread st dstatus pushnotifier = NamedThread thisThread $ do
fulljid <- bindJID jid
liftIO $ debug thisThread ["XMPP connected", show fulljid]
s <- getSession
- _ <- liftIO $ forkOS $ void $ runXMPP s $
+ _ <- liftIO $ forkIO $ void $ runXMPP s $
receivenotifications
sendnotifications
where
diff --git a/Assistant/XMPP.hs b/Assistant/XMPP.hs
index d71bd7eaf..75d948cbd 100644
--- a/Assistant/XMPP.hs
+++ b/Assistant/XMPP.hs
@@ -28,11 +28,10 @@ data XMPPCreds = XMPPCreds
}
deriving (Read, Show)
-{- Note that this must be run in a bound thread; gnuTLS requires it. -}
connectXMPP :: XMPPCreds -> (JID -> XMPP a) -> IO (Either SomeException ())
connectXMPP c a = case parseJID (xmppJID c) of
Nothing -> error "bad JID"
- Just jid -> runInBoundThread $ connectXMPP' jid c a
+ Just jid -> 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 ())