From ff5c2a264ddc7b4fb2adfbd7eebea3af58079e43 Mon Sep 17 00:00:00 2001 From: GogoVega <92022724+GogoVega@users.noreply.github.com> Date: Wed, 5 Nov 2025 11:39:41 +0100 Subject: [PATCH] Allow scoped flows to have their timeout --- packages/node_modules/@node-red/runtime/lib/flows/Flow.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/node_modules/@node-red/runtime/lib/flows/Flow.js b/packages/node_modules/@node-red/runtime/lib/flows/Flow.js index 7558ad946..a0898a506 100644 --- a/packages/node_modules/@node-red/runtime/lib/flows/Flow.js +++ b/packages/node_modules/@node-red/runtime/lib/flows/Flow.js @@ -489,6 +489,9 @@ class Flow { return resolve(); } } else if (this.shutdownScope.length) { + if (this.pendingMsgCount === 0) { + return resolve(); + } let count = 0; this.shutdownScope.forEach((flow) => { if (flow instanceof Flow) {