don't subscribe to runtime updates with no subs (#2166)

This commit is contained in:
Jaco Greeff
2020-04-14 12:20:07 +02:00
committed by GitHub
parent 475cb4fa69
commit 9691fd5ba7
+1 -1
View File
@@ -119,7 +119,7 @@ export default abstract class Init<ApiType extends ApiTypes> extends Decorate<Ap
// subscribe to metadata updates, inject the types on changes
private _subscribeUpdates (): void {
if (this.#updateSub) {
if (this.#updateSub || !this.hasSubscriptions) {
return;
}