summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmppServer.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmppServer.hs b/xmppServer.hs
index d450988c..b5d54344 100644
--- a/xmppServer.hs
+++ b/xmppServer.hs
@@ -242,9 +242,9 @@ getSolicited' :: Text -> IO [Text]
242getSolicited' = textAdapter ConfigFiles.getSolicited 242getSolicited' = textAdapter ConfigFiles.getSolicited
243 243
244sendProbesAndSolicitations state k laddr chan = do 244sendProbesAndSolicitations state k laddr chan = do
245 cbu <- atomically $ readTVar $ clientsByUser state
246 -- get all buddies & solicited matching k for all users 245 -- get all buddies & solicited matching k for all users
247 runTraversableT $ do 246 runTraversableT $ do
247 cbu <- lift $ atomically $ readTVar $ clientsByUser state
248 user <- liftT $ Map.keys cbu 248 user <- liftT $ Map.keys cbu
249 (isbud,getter) <- liftT [(True ,getBuddies' ) 249 (isbud,getter) <- liftT [(True ,getBuddies' )
250 ,(False,getSolicited')] 250 ,(False,getSolicited')]
@@ -252,7 +252,6 @@ sendProbesAndSolicitations state k laddr chan = do
252 let (u,h,r) = splitJID bud 252 let (u,h,r) = splitJID bud
253 addr <- liftMT $ resolvePeer h 253 addr <- liftMT $ resolvePeer h
254 liftT $ guard (PeerKey addr == k) 254 liftT $ guard (PeerKey addr == k)
255 -- return (isbud,u)
256 let make = if isbud then presenceProbe 255 let make = if isbud then presenceProbe
257 else presenceSolicitation 256 else presenceSolicitation
258 toh = peerKeyToText k 257 toh = peerKeyToText k