bdy 1.17.11-dev → 1.17.12-dev

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.17.11-dev",
4
+ "version": "1.17.12-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -225,6 +225,7 @@ class Agent extends events_1.default {
225
225
  if (this.tunnelsUpdating)
226
226
  return;
227
227
  this.tunnelsUpdating = true;
228
+ const hasTunnels = this.tunnels.length > 0;
228
229
  try {
229
230
  const tt = [...this.tunnels];
230
231
  tt.forEach((tunnel) => {
@@ -257,7 +258,7 @@ class Agent extends events_1.default {
257
258
  // do nothing
258
259
  }
259
260
  this.tunnelsUpdating = false;
260
- if (!this.service && !tunnels.length) {
261
+ if (!this.service && hasTunnels && !this.tunnels.length) {
261
262
  output_1.default.exitError(texts_1.ERR_TUNNEL_REMOVED);
262
263
  }
263
264
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.17.11-dev",
4
+ "version": "1.17.12-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {