Skip to content
This repository was archived by the owner on Aug 23, 2019. It is now read-only.

Commit b3a6a74

Browse files
committed
fix: peerBook undefined #299
1 parent 5b498a0 commit b3a6a74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class Switch extends EventEmitter {
169169
* @returns {void}
170170
*/
171171
hangUp (peer, callback) {
172-
const peerInfo = getPeerInfo(peer, this.peerBook)
172+
const peerInfo = getPeerInfo(peer, this._peerBook)
173173
const key = peerInfo.id.toB58String()
174174
const conns = [...this.connection.getAllById(key)]
175175
each(conns, (conn, cb) => {

0 commit comments

Comments
 (0)