Skip to content

Commit 95ae0cf

Browse files
fix(StateQueueManager): Do not throw on orphan states.
closes #2546
1 parent 8845772 commit 95ae0cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/state/stateQueueManager.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export class StateQueueManager {
6161
previousQueueLength[state.name] = queue.length;
6262
if (orphanIdx >= 0 && prev === queue.length) {
6363
// Wait until two consecutive iterations where no additional states were dequeued successfully.
64-
throw new Error(`Cannot register orphaned state '${state.name}'`);
64+
// throw new Error(`Cannot register orphaned state '${state.name}'`);
65+
return states;
6566
} else if (orphanIdx < 0) {
6667
orphans.push(state);
6768
}

0 commit comments

Comments
 (0)