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

This commit is contained in:
Dave Horton
2024-05-01 13:38:59 -04:00
committed by GitHub
parent c77bd84e0e
commit cff67f5e4c

View File

@@ -636,6 +636,8 @@ class TaskDial extends Task {
await this._connectSingleDial(cs, sd); await this._connectSingleDial(cs, sd);
} catch (err) { } catch (err) {
this.logger.info({err}, 'Dial:_attemptCalls - Error calling _connectSingleDial '); this.logger.info({err}, 'Dial:_attemptCalls - Error calling _connectSingleDial ');
sd.removeAllListeners();
this.kill(cs);
} }
}) })
.on('decline', () => { .on('decline', () => {