Skip to content

Commit

Permalink
fix(StateQueueManager): Do not throw on orphan states.
Browse files Browse the repository at this point in the history
closes #2546
  • Loading branch information
christopherthielen committed May 5, 2016
1 parent 8845772 commit 95ae0cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/state/stateQueueManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export class StateQueueManager {
previousQueueLength[state.name] = queue.length;
if (orphanIdx >= 0 && prev === queue.length) {
// Wait until two consecutive iterations where no additional states were dequeued successfully.
throw new Error(`Cannot register orphaned state '${state.name}'`);
// throw new Error(`Cannot register orphaned state '${state.name}'`);
return states;
} else if (orphanIdx < 0) {
orphans.push(state);
}
Expand Down

0 comments on commit 95ae0cf

Please sign in to comment.