From 85b00e4d997cedf43608bb2f7ffbb92583979449 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 19 Jul 2023 09:39:18 +0100 Subject: [PATCH] Retry joins on 524 (Cloudflare timeout) also --- src/stores/RoomViewStore.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/RoomViewStore.tsx b/src/stores/RoomViewStore.tsx index 6d23220bafa..a26d2732195 100644 --- a/src/stores/RoomViewStore.tsx +++ b/src/stores/RoomViewStore.tsx @@ -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; }, );