Skip to content

Commit 3beb547

Browse files
committed
fix: infinite loop via OnStart triggering Input
1 parent 62e3477 commit 3beb547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chickensoft.LogicBlocks/src/LogicBlock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,10 @@ internal TState ProcessInputs<TInputType>(
400400

401401
if (_value is null) {
402402
// No state yet. Let's get the first state going!
403-
OnStart();
404403
Blackboard.InstantiateAnyMissingSavedData();
405404
ChangeState(RestoredState as TState ?? GetInitialState().State);
406405
RestoredState = null;
406+
OnStart();
407407
}
408408

409409
// We can always process the first input directly.

0 commit comments

Comments
 (0)