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

fix: call stopIpfs on ctx #1385

Closed
wants to merge 1 commit into from
Closed

fix: call stopIpfs on ctx #1385

wants to merge 1 commit into from

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Mar 26, 2020

This fixes #1375 by calling stopIpfs on ctx. I think that deconstructing ctx may be causing that error if and only if quitAndInstall was being called before setupDaemon finished executing.

Please validate if this makes sense @lidel.

License: MIT
Signed-off-by: Henrique Dias hacdias@gmail.com

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
@hacdias hacdias requested a review from lidel March 26, 2020 15:59
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

@hacdias
Copy link
Member Author

hacdias commented Apr 6, 2020

@lidel ctx.stopIpfs seems to be a function:

 const runAndStatus = (fn) => async () => { 
   await fn() 
   return status 
 } 

Calling runAndStatus returns a function and it does not execute what's inside unless it's called again.

@hacdias
Copy link
Member Author

hacdias commented Apr 17, 2020

@lidel I agree with you that this is not the root cause of that problem. It doesn't make sense and the user must be really fast (probably impossible) to make this happen. I'll close this and see if I can reproduce.

@hacdias hacdias closed this Apr 17, 2020
@hacdias hacdias deleted the fix-1375 branch April 17, 2020 18:58
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.

stopIpfs is not a function
2 participants