trac-peer 0.1.81 → 0.1.82

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trac-peer",
3
3
  "main": "src/index.js",
4
- "version": "0.1.81",
4
+ "version": "0.1.82",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "assert": "npm:bare-node-assert",
package/src/index.js CHANGED
@@ -753,8 +753,8 @@ export class Peer extends ReadyResource {
753
753
  const remotePublicKey = b4a.toString(connection.remotePublicKey, 'hex');
754
754
 
755
755
  this.connectedPeers.add(remotePublicKey);
756
- wakeup.addStream(connection);
757
- this.store.replicate(connection);
756
+ const stream = this.store.replicate(connection);
757
+ wakeup.addStream(stream);
758
758
  this.connectedNodes++;
759
759
 
760
760
  connection.on('close', () => {