webitel-sdk 23.9.2 → 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,19 +48348,20 @@
48348
48348
  if (this.autoAnswered) {
48349
48349
  return;
48350
48350
  }
48351
- this.autoAnswered = true;
48351
+ if (this._autoAnswerTimerId) {
48352
+ clearTimeout(this._autoAnswerTimerId);
48353
+ }
48352
48354
  this._autoAnswerTimerId = setTimeout(function () { return tslib.__awaiter(_this, void 0, void 0, function () {
48353
- var _a;
48354
- return tslib.__generator(this, function (_b) {
48355
- switch (_b.label) {
48355
+ return tslib.__generator(this, function (_a) {
48356
+ switch (_a.label) {
48356
48357
  case 0:
48357
48358
  if (this.autoAnswered) {
48358
48359
  return [2 /*return*/];
48359
48360
  }
48360
- _a = this;
48361
+ this.autoAnswered = true;
48361
48362
  return [4 /*yield*/, this.answer(req)];
48362
48363
  case 1:
48363
- _a.autoAnswered = _b.sent();
48364
+ _a.sent();
48364
48365
  return [2 /*return*/];
48365
48366
  }
48366
48367
  });