Fix server exception.

Ylian Saint-Hilaire committed Feb 3, 2021 at 21:59 UTC 9d052cb0e46556bbd9b5f7499fed30750d89066e
1 file changed +2 -2
meshagent.js
+2 -2
@@ -1689,8 +1689,8 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
1689
1690 // If the device is pending a change, hold.
1691 if (obj.deviceChanging === true) {
1692 - var func = function ChangeAgentTagFunc() { ChangeAgentCoreInfo(ChangeAgentTagFunc.cmd); }
1693 - func.cmd = command;
1692 + var func = function ChangeAgentTagFunc() { ChangeAgentCoreInfo(ChangeAgentTagFunc.tag); }
1693 + func.tag = tag;
1694 setTimeout(func, 100);
1695 return;
1696 }