ztxkutils 2.10.30 → 2.10.31

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.
@@ -251,11 +251,39 @@ var StompClient = /** @class */ (function () {
251
251
  try {
252
252
  _this.client.disconnect(function () {
253
253
  _this.client = null;
254
+ setTimeout(function () {
255
+ if (_this.clearIsClient) {
256
+ clearTimeout(_this.clearIsClient);
257
+ _this.clearIsClient = null;
258
+ }
259
+ if (_this.clearIsClientNo) {
260
+ clearTimeout(_this.clearIsClientNo);
261
+ _this.clearIsClientNo = null;
262
+ }
263
+ if (_this.clearIsClientYes) {
264
+ clearTimeout(_this.clearIsClientYes);
265
+ _this.clearIsClientYes = null;
266
+ }
267
+ }, 300);
254
268
  callback && callback();
255
269
  resolve(null);
256
270
  });
257
271
  }
258
272
  catch (err) {
273
+ setTimeout(function () {
274
+ if (_this.clearIsClient) {
275
+ clearTimeout(_this.clearIsClient);
276
+ _this.clearIsClient = null;
277
+ }
278
+ if (_this.clearIsClientNo) {
279
+ clearTimeout(_this.clearIsClientNo);
280
+ _this.clearIsClientNo = null;
281
+ }
282
+ if (_this.clearIsClientYes) {
283
+ clearTimeout(_this.clearIsClientYes);
284
+ _this.clearIsClientYes = null;
285
+ }
286
+ }, 300);
259
287
  callback && callback();
260
288
  resolve(null);
261
289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.10.30",
3
+ "version": "2.10.31",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",