Tweak again

This commit is contained in:
Neil Alexander 2022-10-03 11:16:29 +01:00
parent d3aff4b38b
commit a22098e445
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -101,8 +101,11 @@ func (p *PDUStreamProvider) CompleteSync(
) )
if jerr != nil { if jerr != nil {
req.Log.WithError(jerr).Error("p.getJoinResponseForCompleteSync failed") req.Log.WithError(jerr).Error("p.getJoinResponseForCompleteSync failed")
if err == context.DeadlineExceeded || err == context.Canceled || err == sql.ErrTxDone {
return from return from
} }
continue
}
req.Response.Rooms.Join[roomID] = *jr req.Response.Rooms.Join[roomID] = *jr
req.Rooms[roomID] = gomatrixserverlib.Join req.Rooms[roomID] = gomatrixserverlib.Join
} }