dial race where caller hangs up while dial is starting (#737)

This commit is contained in:
Dave Horton authored and GitHub committed 2024-05-01 13:38:59 -04:00
1 parent c77bd84e0e
commit cff67f5e4c
1 file changed
+2
+2
View File
@@ -636,6 +636,8 @@ class TaskDial extends Task {
await this._connectSingleDial(cs, sd);
} catch (err) {
this.logger.info({err}, 'Dial:_attemptCalls - Error calling _connectSingleDial ');
sd.removeAllListeners();
this.kill(cs);
}
})
.on('decline', () => {