Skip to content

Commit

Permalink
fix: peerBook undefined libp2p#299
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobheun committed Jan 2, 2019
1 parent 5b498a0 commit b3a6a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class Switch extends EventEmitter {
* @returns {void}
*/
hangUp (peer, callback) {
const peerInfo = getPeerInfo(peer, this.peerBook)
const peerInfo = getPeerInfo(peer, this._peerBook)
const key = peerInfo.id.toB58String()
const conns = [...this.connection.getAllById(key)]
each(conns, (conn, cb) => {
Expand Down

0 comments on commit b3a6a74

Please sign in to comment.