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

Commit

Permalink
fix: use the right callback
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 authored and daviddias committed Aug 24, 2017
1 parent 7144f0b commit 4a9ecf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dial.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,14 @@ function dial (swarm) {
const ms = new multistream.Dialer()
ms.handle(conn, (err) => {
if (err) {
return callback(err)
return cb(err)
}
ms.select(protocol, (err, conn) => {
if (err) {
return callback(err)
return cb(err)
}
proxyConn.setInnerConn(conn)
callback(null, proxyConn)
cb(null, proxyConn)
})
})
}
Expand Down

0 comments on commit 4a9ecf2

Please sign in to comment.