Fixed AmtManager exception.

This commit is contained in:
Ylian Saint-Hilaire 2021-07-01 12:14:47 -07:00
parent efc0d03830
commit 08979442bd
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ module.exports.CreateAmtManager = function (parent) {
if (dev.taskid != null) { obj.parent.taskLimiter.completed(dev.taskid); delete dev.taskLimiter; }
// Clean up this device
if (dev.amtstack != null) { dev.amtstack.CancelAllQueries(999); delete dev.amtstack.dev; delete dev.amtstack; }
if (dev.amtstack != null) { dev.amtstack.CancelAllQueries(999); if (dev.amtstack != null) { delete dev.amtstack.dev; delete dev.amtstack; } }
if (dev.polltimer != null) { clearInterval(dev.polltimer); delete dev.polltimer; }
// Remove the device from the list