@tsed/common 6.69.1 → 6.69.2

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.
@@ -487,12 +487,12 @@ class AnyToPromiseWithCtx extends AnyToPromise {
487
487
  this.err = err;
488
488
  }
489
489
 
490
- get isDone() {
490
+ isDone() {
491
491
  const {
492
492
  $ctx
493
493
  } = this;
494
494
 
495
- if (!$ctx.isDone()) {
495
+ if (!($ctx != null && $ctx.isDone())) {
496
496
  if ($ctx != null && $ctx.request.isAborted() || $ctx != null && $ctx.response.isDone()) {
497
497
  this.destroy();
498
498
 
@@ -502,7 +502,7 @@ class AnyToPromiseWithCtx extends AnyToPromise {
502
502
  }
503
503
  }
504
504
 
505
- return this.status !== AnyToPromiseStatus.PENDING;
505
+ return super.isDone();
506
506
  }
507
507
 
508
508
  async call(cb) {