webitel-sdk 23.9.1 → 23.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48348,18 +48348,20 @@
48348
48348
  if (this.autoAnswered) {
48349
48349
  return;
48350
48350
  }
48351
+ if (this._autoAnswerTimerId) {
48352
+ clearTimeout(this._autoAnswerTimerId);
48353
+ }
48351
48354
  this._autoAnswerTimerId = setTimeout(function () { return tslib.__awaiter(_this, void 0, void 0, function () {
48352
- var _a;
48353
- return tslib.__generator(this, function (_b) {
48354
- switch (_b.label) {
48355
+ return tslib.__generator(this, function (_a) {
48356
+ switch (_a.label) {
48355
48357
  case 0:
48356
48358
  if (this.autoAnswered) {
48357
48359
  return [2 /*return*/];
48358
48360
  }
48359
- _a = this;
48361
+ this.autoAnswered = true;
48360
48362
  return [4 /*yield*/, this.answer(req)];
48361
48363
  case 1:
48362
- _a.autoAnswered = _b.sent();
48364
+ _a.sent();
48363
48365
  return [2 /*return*/];
48364
48366
  }
48365
48367
  });