dialogflow: clear no input timer on caller hangup

This commit is contained in:
Dave Horton
2021-01-14 08:58:18 -05:00
parent 63a00063c1
commit ec7a1858d6

View File

@@ -88,6 +88,8 @@ class Dialogflow extends Task {
this.ep.removeCustomEventListener('dialogflow::end_of_utterance');
this.ep.removeCustomEventListener('dialogflow::error');
this._clearNoinputTimer();
if (!this.reportedFinalAction) this.performAction({dialogflowResult: 'caller hungup'})
.catch((err) => this.logger.error({err}, 'dialogflow - error w/ action webook'));