Skip to content

Commit

Permalink
fix(Node): prevent Node#start callback being called multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Jan 5, 2016
1 parent d4243d4 commit a15e80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Node.prototype.start = function (cb) {
async.parallel([
this.peers.connect.bind(this.peers),
function (cb) {
self.chain.on('syncing', function () { cb(null) })
self.chain.once('syncing', function () { cb(null) })
self.chain.sync()
}
], cb)
Expand Down

0 comments on commit a15e80a

Please sign in to comment.