We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 075e186 commit 3065180Copy full SHA for 3065180
1 file changed
src/matrixrtc/NewMembershipManager.ts
@@ -344,6 +344,16 @@ class ActionScheduler {
344
) {
345
return Status.Connected;
346
}
347
+ } else if (actions.length === 3) {
348
+ const types = actions.map((a) => a.type);
349
+ // It is a correct connected state if we already schedule the next Restart but have not yet cleaned up
350
+ // the current restart.
351
+ if (
352
+ types.filter((t) => t === MembershipActionType.RestartDelayedEvent).length === 2 &&
353
+ types.includes(MembershipActionType.UpdateExpiry)
354
+ ) {
355
+ return Status.Connected;
356
+ }
357
358
359
if (!this.state.running) {
0 commit comments