mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
fix bug in prev commit
This commit is contained in:
@@ -782,11 +782,11 @@ class CallSession extends Emitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (0 === this.tasks.length && this.requestor instanceof WsRequestor && !this.callGone) {
|
if (0 === this.tasks.length && this.requestor instanceof WsRequestor && !this.callGone) {
|
||||||
let span;
|
//let span;
|
||||||
try {
|
try {
|
||||||
|
//const {span} = this.rootSpan.startChildSpan('waiting for commands');
|
||||||
|
//const {reason, queue, command} = await this._awaitCommandsOrHangup();
|
||||||
/*
|
/*
|
||||||
const {span} = this.rootSpan.startChildSpan('waiting for commands');
|
|
||||||
const {reason, queue, command} = await this._awaitCommandsOrHangup();
|
|
||||||
span.setAttributes({
|
span.setAttributes({
|
||||||
'completion.reason': reason,
|
'completion.reason': reason,
|
||||||
'async.request.queue': queue,
|
'async.request.queue': queue,
|
||||||
@@ -794,9 +794,10 @@ class CallSession extends Emitter {
|
|||||||
});
|
});
|
||||||
span.end();
|
span.end();
|
||||||
*/
|
*/
|
||||||
|
await this._awaitCommandsOrHangup();
|
||||||
if (this.callGone) break;
|
if (this.callGone) break;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
span.end();
|
//span.end();
|
||||||
this.logger.info(err, 'CallSession:exec - error waiting for new commands');
|
this.logger.info(err, 'CallSession:exec - error waiting for new commands');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user