@ -242,15 +243,15 @@ reconnect :: Integer -- ^ maximum number of retries (Nothing for
@@ -242,15 +243,15 @@ reconnect :: Integer -- ^ maximum number of retries (Nothing for
-- unbounded). Numbers of 1 or less will perform exactly
-- one retry
->Session-- ^ session to reconnect
->IO[XmppFailure]-- ^ The failure modes of the retries
->IO(Bool,[XmppFailure])-- ^ The failure modes of the retries
reconnectmaxTriessess=gomaxTries
where
got=do
res<-doRetrysess
caseresof
Nothing->return[]
Juste->if(t>1)then(e:)<$>go(t-1)
elsereturn$[e]
Nothing->return(True,[])
Juste->if(t>1)then(second(e:))<$>go(t-1)
elsereturn$(False,[e])
-- | Reconnect with the stored settings with an unlimited number of retries.