karthikindia / emite

Automatically exported from code.google.com/p/emite
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by vruiz.ju...@gmail.com on 21 Feb 2011 at 1:02

GoogleCodeExporter commented 8 years ago

Original comment by ashward....@gmail.com on 24 Feb 2011 at 2:50