Browse Source

Update packages/apputils-extension/src/settingconnector.ts

Saul Shanabrook 5 years ago
parent
commit
35a1b7e4a6
1 changed files with 1 additions and 6 deletions
  1. 1 6
      packages/apputils-extension/src/settingconnector.ts

+ 1 - 6
packages/apputils-extension/src/settingconnector.ts

@@ -31,12 +31,7 @@ export class SettingConnector extends DataConnector<
   fetch(id: string): Promise<ISettingRegistry.IPlugin | undefined> {
     const throttlers = this._throttlers;
     if (!(id in throttlers)) {
-      throttlers[id] = new Throttler(async () => {
-        const fetched = await this._connector.fetch(id);
-        throttlers[id].dispose();
-        delete throttlers[id];
-        return fetched;
-      }, 100);
+      throttlers[id] = new Throttler(() => this._connector.fetch(id), 100);
     }
     return throttlers[id].invoke();
   }