Skip to content

Commit e8d588d

Browse files
committed
review add warning when using addAction while the scheduler is not running.
1 parent 72cc607 commit e8d588d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/matrixrtc/NewMembershipManager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ class ActionScheduler {
292292
} else {
293293
logger.info(`added action: ${actionString}\nAddQueue:`, this._insertions);
294294
}
295+
if (!this.state.running)
296+
logger.warn(`MembershipManager is not running but we try to add Action: ${actionString}`);
295297
}
296298

297299
public resetActions(actions: Action[], withoutInsertions = true): void {

0 commit comments

Comments
 (0)