mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-02-15 02:39:35 +00:00
bugfix: gather catch errors when webhook fails
This commit is contained in:
@@ -462,6 +462,7 @@ class TaskGather extends Task {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
if (reason.startsWith('dtmf')) {
|
if (reason.startsWith('dtmf')) {
|
||||||
if (this.parentTask) this.parentTask.emit('dtmf', evt);
|
if (this.parentTask) this.parentTask.emit('dtmf', evt);
|
||||||
else {
|
else {
|
||||||
@@ -483,6 +484,7 @@ class TaskGather extends Task {
|
|||||||
await this.performAction({reason: 'timeout'});
|
await this.performAction({reason: 'timeout'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (err) { /*already logged error*/ }
|
||||||
this.notifyTaskDone();
|
this.notifyTaskDone();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user