Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

fix: handle missing daemon errors #445

Merged
merged 1 commit into from
Nov 24, 2016
Merged

Conversation

daviddias
Copy link
Contributor

No description provided.

@daviddias
Copy link
Contributor Author

@pfrazee this seems to solve your issue, want to try it out?

@pfrazee
Copy link

pfrazee commented Nov 23, 2016

Yeah that solved it! Thanks

@@ -147,6 +147,10 @@ function requestAPI (config, options, callback) {
headers: headers
}, onRes(options.buffer, callback))

req.on('error', (err) => {
callback(err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should use to avoid having double callback calls

const once = require('once')
callback = once(callback)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is already done, see above :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@daviddias daviddias merged commit 039bdbc into master Nov 24, 2016
@daviddias daviddias deleted the fix/handle-missing-daemon branch November 24, 2016 10:16
@pfrazee
Copy link

pfrazee commented Nov 25, 2016

thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants