egos-transfer 0.1.6 → 0.1.7

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.
package/dist/index.js CHANGED
@@ -418,19 +418,17 @@ class PeerTransfer {
418
418
  }
419
419
  });
420
420
  conn.on('error', (err) => __awaiter(this, void 0, void 0, function* () {
421
- var _a;
422
421
  this.removeConnection(conn.peer, conn.connectionId);
423
- if (!((_a = this.peer) === null || _a === void 0 ? void 0 : _a.open)) {
424
- yield this.reconnect();
425
- }
422
+ // if (!this.peer?.open) {
423
+ // await this.reconnect();
424
+ // }
426
425
  done(null);
427
426
  }));
428
427
  conn.on('close', () => __awaiter(this, void 0, void 0, function* () {
429
- var _a;
430
428
  this.removeConnection(conn.peer, conn.connectionId);
431
- if (!((_a = this.peer) === null || _a === void 0 ? void 0 : _a.open)) {
432
- yield this.reconnect();
433
- }
429
+ // if (!this.peer?.open) {
430
+ // await this.reconnect();
431
+ // }
434
432
  done(null);
435
433
  }));
436
434
  conn.on('open', () => __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egos-transfer",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "1234",
5
5
  "homepage": "https://github.com/superbogy/peer-transfer#readme",
6
6
  "bugs": {
package/src/index.ts CHANGED
@@ -457,14 +457,14 @@ export abstract class PeerTransfer {
457
457
  }
458
458
  });
459
459
  conn.on('error', async (err) => {
460
- // this.removeConnection(conn.peer, conn.connectionId);
460
+ this.removeConnection(conn.peer, conn.connectionId);
461
461
  // if (!this.peer?.open) {
462
462
  // await this.reconnect();
463
463
  // }
464
464
  done(null);
465
465
  });
466
466
  conn.on('close', async () => {
467
- // this.removeConnection(conn.peer, conn.connectionId);
467
+ this.removeConnection(conn.peer, conn.connectionId);
468
468
  // if (!this.peer?.open) {
469
469
  // await this.reconnect();
470
470
  // }