bugfix: gather catch errors when webhook fails

This commit is contained in:
Dave Horton
2022-04-24 13:45:29 -04:00
parent de9f2ce5ca
commit 85d86cfdc3

View File

@@ -462,6 +462,7 @@ class TaskGather extends Task {
return;
}
try {
if (reason.startsWith('dtmf')) {
if (this.parentTask) this.parentTask.emit('dtmf', evt);
else {
@@ -483,6 +484,7 @@ class TaskGather extends Task {
await this.performAction({reason: 'timeout'});
}
}
} catch (err) { /*already logged error*/ }
this.notifyTaskDone();
}
}