Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: do not call shutdown twice #414

Closed
wants to merge 2 commits into from

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Dec 3, 2019

The interface tests in ipfs-inactive/js-ipfs-http-client#1183 have started throwing UnhandledPromiseRejections for a connection refused error to /api/v0/shutdown. This is because stop was being called and then called again in killProcess.

With callbacks this error was smothered but it is now appearing with the promise-only API.

The interface tests in ipfs-inactive/js-ipfs-http-client#1183 have started throwing `UnhandledPromiseRejection`s for a connection refused error to `/api/v0/shutdown`. This is because `stop` was being called and then called again in `killProcess`.

With callbacks this error was smothered but it is now appearing with the promise-only API.
@alanshaw alanshaw closed this Dec 23, 2019
@alanshaw alanshaw deleted the fix/do-not-call-shutdown-twice branch December 23, 2019 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants