Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Retry joins on 524 (Cloudflare timeout) also (#11296)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Jul 19, 2023
1 parent 9a31cd0 commit a1ca79c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/RoomViewStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ export class RoomViewStore extends EventEmitter {
}),
NUM_JOIN_RETRY,
(err) => {
// if we received a Gateway timeout then retry
return err.httpStatus === 504;
// if we received a Gateway timeout or Cloudflare timeout then retry
return err.httpStatus === 504 || err.httpStatus === 524;
},
);

Expand Down

0 comments on commit a1ca79c

Please sign in to comment.