Skip to content

Commit

Permalink
Merge pull request #692 from prey/master
Browse files Browse the repository at this point in the history
Update version 1.10.11
  • Loading branch information
SoraKenji authored Nov 2, 2022
2 parents e69bdf1 + fd60ab1 commit beea5cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/agent/plugins/control-panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ function boot(cb) {
websocket.load.call(common, (err, emitter) => {
if (!emitter) return;
setInterval(() => {
module.exports.send_info_encrypt();
module.exports.send_info_encrypt(() => {
})
}, exports.timeout_send_info_encrypt);
emitter.on('command', commands.perform);
});
Expand Down Expand Up @@ -109,8 +110,6 @@ function handle_response(what, err, resp) {

module.exports.send_info_encrypt = function(cb) {
let data = {}


var os_name = os.platform().replace('win32', 'windows').replace('darwin', 'mac'),
system = require(join('./../../../system', os_name));

Expand All @@ -130,7 +129,7 @@ module.exports.send_info_encrypt = function(cb) {
})
}
else {
return cb(new Error('Action only allowed on Windows'));
return typeof(cb) == 'function' && cb(new Error('Action only allowed on Windows'));
}
}

Expand Down

0 comments on commit beea5cf

Please sign in to comment.