Retry joins on 524 (Cloudflare timeout) also (#11296)

t3chguy/dedup-icons-17oct
Michael Telatynski 2023-07-19 11:49:52 +01:00 committed by GitHub
parent 9a31cd0fa8
commit a1ca79c6c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
},
);