From 9d052cb0e46556bbd9b5f7499fed30750d89066e Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Wed, 3 Feb 2021 21:59:26 -0800 Subject: [PATCH] Fix server exception. --- meshagent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshagent.js b/meshagent.js index 374dcafc..819e5e23 100644 --- a/meshagent.js +++ b/meshagent.js @@ -1689,8 +1689,8 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { // If the device is pending a change, hold. if (obj.deviceChanging === true) { - var func = function ChangeAgentTagFunc() { ChangeAgentCoreInfo(ChangeAgentTagFunc.cmd); } - func.cmd = command; + var func = function ChangeAgentTagFunc() { ChangeAgentCoreInfo(ChangeAgentTagFunc.tag); } + func.tag = tag; setTimeout(func, 100); return; }