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 login cancel #1546

Closed
wants to merge 5 commits into from
Closed

Fix login cancel #1546

wants to merge 5 commits into from

Conversation

patrickxb
Copy link
Contributor

Fixes CORE-2216

Plumbed real context.Context through LoginProvision.
cmd_login Cancel() handler cancels via context cancel and waits for command to finish.

r? @maxtaco

@@ -98,3 +115,23 @@ func (c *CmdLogin) GetUsage() libkb.Usage {
API: true,
}
}

func (c *CmdLogin) Cancel() error {
Copy link
Contributor

Choose a reason for hiding this comment

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

where is this called from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maxtaco
Copy link
Contributor

maxtaco commented Dec 16, 2015

This looks good, a few questions...

@patrickxb patrickxb closed this Dec 16, 2015
@patrickxb patrickxb deleted the patrickxb/CORE-2216 branch December 16, 2015 20:27
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