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

Commit a1ca79c

Browse files
authored
Retry joins on 524 (Cloudflare timeout) also (#11296)
1 parent 9a31cd0 commit a1ca79c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stores/RoomViewStore.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,8 @@ export class RoomViewStore extends EventEmitter {
545545
}),
546546
NUM_JOIN_RETRY,
547547
(err) => {
548-
// if we received a Gateway timeout then retry
549-
return err.httpStatus === 504;
548+
// if we received a Gateway timeout or Cloudflare timeout then retry
549+
return err.httpStatus === 504 || err.httpStatus === 524;
550550
},
551551
);
552552

0 commit comments

Comments
 (0)