tnx-shared 5.3.297 → 5.3.298

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.
@@ -5940,6 +5940,7 @@
5940
5940
  this.delayStarters = [];
5941
5941
  this.connected = false;
5942
5942
  this.maxRetryTimes = 10;
5943
+ this.isInited = false;
5943
5944
  this.wait = function (ms) { return new Promise(function (r) { return setTimeout(r, ms); }); };
5944
5945
  this._moduleConfig = this._moduleConfigService.getConfig();
5945
5946
  this.hubsSetting = this._moduleConfig.environment.signalrConfig.hubs;
@@ -5949,6 +5950,10 @@
5949
5950
  return __generator(this, function (_a) {
5950
5951
  switch (_a.label) {
5951
5952
  case 0:
5953
+ if (this.isInited) {
5954
+ return [2 /*return*/];
5955
+ }
5956
+ this.isInited = true;
5952
5957
  if (!(this.hubsSetting && this.hubsSetting.enableCommonHub)) return [3 /*break*/, 2];
5953
5958
  this.hubs['CommonHub'] = this.createConnection('CommonHub');
5954
5959
  return [4 /*yield*/, this.startConnection(this.hubs['CommonHub'])];