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

ws: Actually exit when idle #3554

Closed
wants to merge 1 commit into from

Conversation

stefwalter
Copy link
Contributor

The logic to actually exit when cockpit-ws is idle had regressed
and it would no longer quit.

Add a test to cover the case.

@stefwalter stefwalter added the release-blocker Targetted for next release label Jan 25, 2016
@dperpeet dperpeet self-assigned this Jan 25, 2016
}
/* Now wait for 3 seconds, and the auth should have said its idling */
flag = FALSE;
while (!flag && !idling)
Copy link
Contributor

Choose a reason for hiding this comment

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

why does flag have to be set and tested again here? If we're testing with a timeout, shouldn't we start it again explicitly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So the second timeout can kick in.

@stefwalter
Copy link
Contributor Author

Added a second timeout.

@dperpeet
Copy link
Contributor

The logic to actually exit when cockpit-ws is idle had regressed
and it would no longer quit.

Add a test to cover the case.

Closes cockpit-project#3554
@stefwalter
Copy link
Contributor Author

Updated the docs.

@dperpeet dperpeet closed this in a4477d7 Jan 25, 2016
@stefwalter stefwalter deleted the idle-exit branch February 1, 2016 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-blocker Targetted for next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants