Fix server exception.

This commit is contained in:
Ylian Saint-Hilaire 2021-02-03 21:59:26 -08:00
parent 0d67041751
commit 9d052cb0e4
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}