ztxkutils 2.10.32 → 2.10.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,7 +28,6 @@ var StompClient = /** @class */ (function () {
28
28
  // 获取 STOMP 子协议的客户端对象
29
29
  this.client = Stomp.over(socket);
30
30
  this.isClient = false;
31
- this.userClose = false; // 重新初始化 重新计算
32
31
  // 如果存在 证明已经初始化过,直接删除
33
32
  if (this.clearIsClient) {
34
33
  clearTimeout(this.clearIsClient);
@@ -132,6 +131,7 @@ var StompClient = /** @class */ (function () {
132
131
  console.log("---------\u8FDE\u63A5\u5931\u8D25 system=" + _this.connectWsConfig.systemType + " time=" + Date.now() + "--------");
133
132
  console.log(err);
134
133
  if (_this.userClose) {
134
+ _this.userClose = false; // 重新初始化 重新计算
135
135
  if (_this.clearIsClient) {
136
136
  clearTimeout(_this.clearIsClient);
137
137
  _this.clearIsClient = null;
@@ -266,18 +266,6 @@ var StompClient = /** @class */ (function () {
266
266
  var _this = this;
267
267
  this.isInit = false;
268
268
  this.userClose = true;
269
- if (this.clearIsClient) {
270
- clearTimeout(this.clearIsClient);
271
- this.clearIsClient = null;
272
- }
273
- if (this.clearIsClientNo) {
274
- clearTimeout(this.clearIsClientNo);
275
- this.clearIsClientNo = null;
276
- }
277
- if (this.clearIsClientYes) {
278
- clearTimeout(this.clearIsClientYes);
279
- this.clearIsClientYes = null;
280
- }
281
269
  return new Promise(function (resolve, reject) {
282
270
  try {
283
271
  _this.client.disconnect(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "2.10.32",
3
+ "version": "2.10.33",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",