Update 'src/asset.js'

This commit is contained in:
Sergiu Toma 2022-01-13 16:04:32 +00:00
parent 6f69e77506
commit 9eae897232
1 changed files with 604 additions and 604 deletions

View File

@ -277,9 +277,9 @@ class Asset {
} }
)); ));
utils.writeLog(`Asset ${this.id} mmonitoring group ${this.groupId}`) utils.writeLog(`Asset ${this.id} mmonitoring group ${this.groupId}`)
return callback(); if (callback) return callback();
} else { } else {
return callback('Cannot send group-monitoring: Hub not connected'); if (callback) return callback('Cannot send group-monitoring: Hub not connected');
} }
} else { } else {
console.log('_moveToChannel--------------------') console.log('_moveToChannel--------------------')
@ -376,7 +376,7 @@ class Asset {
_makePtt(callback) { _makePtt(callback) {
// Sending group monitoring before we make PTT() // Sending group monitoring before we make PTT()
// Is used for the HUB load test(_moveToChannel is sent anyway after connecting to murmur-register) // Is used for the HUB load test(_moveToChannel is sent anyway after connecting to murmur-register)
if (this.configs.settings.send_group_monitoring_before_each_call) { if (this.configs.settings.send_group_monitoring_before_each_call == 'true') {
this._moveToChannel(); this._moveToChannel();
} }