Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function stop (callback) {
winston.info('Stopping IoT Agent');
async.series([
stopApplicationServers,
iotAgentLib.resetMiddlewares,
iotAgentLib.deactivate
], function () {
loraApps = [];
winston.info('Agent stopped');
return callback();
});
}