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 +6 -8
- package/package.json +1 -1
- package/src/index.ts +2 -2
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 (!
|
|
424
|
-
|
|
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 (!
|
|
432
|
-
|
|
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
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
|
-
|
|
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
|
-
|
|
467
|
+
this.removeConnection(conn.peer, conn.connectionId);
|
|
468
468
|
// if (!this.peer?.open) {
|
|
469
469
|
// await this.reconnect();
|
|
470
470
|
// }
|