Skip to content

Commit

Permalink
fix: register error event first
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed May 4, 2018
1 parent 7b412ac commit 8c2ff7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipfsd-in-proc.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class Node extends EventEmitter {
libp2p: this.opts.libp2p
})

this.exec.once('ready', () => this.emit('ready'))
this.exec.once('error', err => this.emit('error', err))
this.exec.once('ready', () => this.emit('ready'))
}

/**
Expand Down

0 comments on commit 8c2ff7d

Please sign in to comment.