fix(stdlib): do not emit extraneous pulse from defer-pulse on boot

This commit is contained in:
Victor Nakoryakov
2018-03-05 16:00:05 +03:00
parent 22e1d70b08
commit 52a23f1c01

View File

@@ -6,7 +6,7 @@ struct State {
void evaluate(Context ctx) {
if (isInputDirty<input_IN>(ctx)) { // This happens only when all nodes are evaluated
setTimeout(ctx, 0);
} else {
} else if (isTimedOut(ctx)) {
emitValue<output_OUT>(ctx, true);
}
}