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

Use of SessionStates.ready.equals(state) problems #16

Open
danigb opened this issue Mar 11, 2011 · 2 comments
Open

Use of SessionStates.ready.equals(state) problems #16

danigb opened this issue Mar 11, 2011 · 2 comments
Labels
Milestone

Comments

@danigb
Copy link
Member

danigb commented Mar 11, 2011

Reported by project member vruiz.jurado, Feb 20, 2011
The use of:
SessionStates.ready.equals(state) or SessionStates.isReady
gives wrongs values when you are at "Ready" state and you goes to the "RosterReady" state (for instance).

As a result instead of be logged, Hablar seems disconnected, your roster is inactive and Login Page shows "Wait..." instead of the Logout button.

How to test it: Active the LoginPage and try to login/logout several times. You will see that you can login only one time (when the browser load Hablar).

How to fix it: Use session.isReady() (in XmppSession) instead of SessionStates.ready.equals(state), or fix SessionState.isReady.

@danigb
Copy link
Member Author

danigb commented Mar 11, 2011

Better isReady method. Closed by 6bb77c7

@vjrj
Copy link
Member

vjrj commented Mar 14, 2011

I think it's not enough to close the bug. Search the uses of SessionStates.ready (for instance in RosterPresenter.java or HablarRoster.java and others).

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

No branches or pull requests

2 participants