From 38013a86db637615ec638b8927c5e70d2ff748dd Mon Sep 17 00:00:00 2001 From: znetsixe <73483679+znetsixe@users.noreply.github.com> Date: Mon, 23 Feb 2026 13:17:14 +0100 Subject: [PATCH] update --- src/nodeClass.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nodeClass.js b/src/nodeClass.js index d92c73f..53c0de7 100644 --- a/src/nodeClass.js +++ b/src/nodeClass.js @@ -264,7 +264,7 @@ try{ } catch (error) { this.node.error(`Error handling input (${msg?.topic}): ${error?.message || error}`); } finally { - done(); + if (typeof done === 'function') done(); } }); } @@ -276,7 +276,7 @@ try{ this.node.on('close', (done) => { clearInterval(this._tickInterval); clearInterval(this._statusInterval); - done(); + if (typeof done === 'function') done(); }); } }