From 52a23f1c01a47fc53989bea67f4e0bdaae2243bb Mon Sep 17 00:00:00 2001 From: Victor Nakoryakov Date: Mon, 5 Mar 2018 16:00:05 +0300 Subject: [PATCH] fix(stdlib): do not emit extraneous pulse from defer-pulse on boot --- workspace/__lib__/xod/core/defer-pulse/patch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace/__lib__/xod/core/defer-pulse/patch.cpp b/workspace/__lib__/xod/core/defer-pulse/patch.cpp index 62341a59..1ed690e7 100644 --- a/workspace/__lib__/xod/core/defer-pulse/patch.cpp +++ b/workspace/__lib__/xod/core/defer-pulse/patch.cpp @@ -6,7 +6,7 @@ struct State { void evaluate(Context ctx) { if (isInputDirty(ctx)) { // This happens only when all nodes are evaluated setTimeout(ctx, 0); - } else { + } else if (isTimedOut(ctx)) { emitValue(ctx, true); } }