Browse Source

IQ.hs: Set default time-out value to 30 instead of 3

master
Jon Kristensen 13 years ago
parent
commit
52961a70a4
  1. 4
      source/Network/Xmpp/Concurrent/IQ.hs

4
source/Network/Xmpp/Concurrent/IQ.hs

@ -54,7 +54,7 @@ sendIQ timeOut to tp lang body session = do -- TODO: Add timeout
return () return ()
-- | Like 'sendIQ', but waits for the answer IQ. Times out after 3 seconds -- | Like 'sendIQ', but waits for the answer IQ. Times out after 30 seconds
sendIQ' :: Maybe Jid sendIQ' :: Maybe Jid
-> IQRequestType -> IQRequestType
-> Maybe LangTag -> Maybe LangTag
@ -62,7 +62,7 @@ sendIQ' :: Maybe Jid
-> Session -> Session
-> IO (Maybe IQResponse) -> IO (Maybe IQResponse)
sendIQ' to tp lang body session = do sendIQ' to tp lang body session = do
ref <- sendIQ (Just 3000000) to tp lang body session ref <- sendIQ (Just 30000000) to tp lang body session
maybe (return Nothing) (fmap Just . atomically . takeTMVar) ref maybe (return Nothing) (fmap Just . atomically . takeTMVar) ref

Loading…
Cancel
Save