Don't log race condition error (#14922)

This commit is contained in:
Charles Gagnon
2021-04-01 11:11:43 -07:00
committed by GitHub
parent 97ce7b9b67
commit 4c2969d4ca
3 changed files with 12 additions and 3 deletions

View File

@@ -17,7 +17,10 @@ export function subscriptionToDisposable(sub: Subscription): IDisposable {
}
export class AngularDisposable extends Disposable implements OnDestroy {
public isDisposed = false;
ngOnDestroy() {
this.dispose();
this.isDisposed = true;
}
}