bdy 1.9.1-dev → 1.9.2-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.9.1-dev",
4
+ "version": "1.9.2-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -125,12 +125,17 @@ class Agent extends events_1.default {
125
125
  }
126
126
  refreshIn15(fetch = true, counter = 1) {
127
127
  setTimeout(async () => {
128
- if (fetch || counter >= 4) {
129
- counter = 0;
130
- this.socket.fetch(this.started, null, false, this.getTunnelsUpdate());
128
+ try {
129
+ if (fetch || counter >= 4) {
130
+ counter = 0;
131
+ this.socket.fetch(this.started, null, false, this.getTunnelsUpdate());
132
+ }
133
+ else {
134
+ this.update();
135
+ }
131
136
  }
132
- else {
133
- this.update();
137
+ catch {
138
+ // do nothing
134
139
  }
135
140
  this.refreshIn15(false, counter + 1);
136
141
  }, 15000);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.9.1-dev",
4
+ "version": "1.9.2-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {