Skip to content

Commit

Permalink
fix: adding a peer to the list of connections so that we can clean up…
Browse files Browse the repository at this point in the history
… when leaving the room
  • Loading branch information
pgte committed Dec 5, 2017
1 parent 88f2ff0 commit 634b5b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class PubSubRoom extends EventEmitter {
if (!conn) {
conn = new Connection(peer, this._ipfs, this)
conn.on('error', (err) => this.emit('error', err))
this._connections[peer] = conn
}

// We should use the same sequence number generation as js-libp2p-floosub does:
Expand Down

0 comments on commit 634b5b8

Please sign in to comment.