Skip to content

Commit

Permalink
not emitting error into the void when connection errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pgte committed Dec 7, 2017
1 parent 9e18def commit 3f649a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/direct-connection-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const emitter = new EventEmitter()
function handler (protocol, conn) {
conn.getPeerInfo((err, peerInfo) => {
if (err) {
return this.emit('error', err)
console.log(err)
return
}

const peerId = peerInfo.id.toB58String()
Expand Down

0 comments on commit 3f649a8

Please sign in to comment.